glib r7111 - in branches/glib-2-16: . glib
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7111 - in branches/glib-2-16: . glib
- Date: Mon, 30 Jun 2008 22:13:45 +0000 (UTC)
Author: matthiasc
Date: Mon Jun 30 22:13:45 2008
New Revision: 7111
URL: http://svn.gnome.org/viewvc/glib?rev=7111&view=rev
Log:
* glib/gslice.h (g_slice_copy): Apply type casts needed
for proper compilation on 64-bit platforms.
Modified:
branches/glib-2-16/ChangeLog
branches/glib-2-16/glib/gslice.h
Modified: branches/glib-2-16/glib/gslice.h
==============================================================================
--- branches/glib-2-16/glib/gslice.h (original)
+++ branches/glib-2-16/glib/gslice.h Mon Jun 30 22:13:45 2008
@@ -54,7 +54,8 @@
/* we go through extra hoops to ensure type safety */
#define g_slice_dup(type, mem) \
- (1 ? g_slice_copy (sizeof (type), (mem)) : (type*) ((type*) 0 == (mem)))
+ (1 ? (type*) g_slice_copy (sizeof (type), (mem)) \
+ : ((void) ((type*) 0 == (mem)), (type*) 0))
#define g_slice_free(type, mem) do { \
if (1) g_slice_free1 (sizeof (type), (mem)); \
else (void) ((type*) 0 == (mem)); \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]