glib r6956 - in trunk: . glib/gnulib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r6956 - in trunk: . glib/gnulib
- Date: Thu, 29 May 2008 02:43:49 +0000 (UTC)
Author: tml
Date: Thu May 29 02:43:49 2008
New Revision: 6956
URL: http://svn.gnome.org/viewvc/glib?rev=6956&view=rev
Log:
2008-05-29 Tor Lillqvist <tml novell com>
* glib/gnulib/printf-args.c (printf_fetchargs): wint_t is short on
Windows, and gcc warns: "wint_t is promoted to int when passed
through ... (so you should pass int not wint_t to va_arg)." So do
that then.
Modified:
trunk/ChangeLog
trunk/glib/gnulib/printf-args.c
Modified: trunk/glib/gnulib/printf-args.c
==============================================================================
--- trunk/glib/gnulib/printf-args.c (original)
+++ trunk/glib/gnulib/printf-args.c Thu May 29 02:43:49 2008
@@ -90,7 +90,11 @@
break;
#ifdef HAVE_WINT_T
case TYPE_WIDE_CHAR:
+#ifdef _WIN32
+ ap->a.a_wide_char = va_arg (args, int);
+#else
ap->a.a_wide_char = va_arg (args, wint_t);
+#endif
break;
#endif
case TYPE_STRING:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]