gscript r6 - trunk/gscript
- From: alexl svn gnome org
- To: svn-commits-list gnome org
- Subject: gscript r6 - trunk/gscript
- Date: Tue, 16 Sep 2008 08:15:49 +0000 (UTC)
Author: alexl
Date: Tue Sep 16 08:15:48 2008
New Revision: 6
URL: http://svn.gnome.org/viewvc/gscript?rev=6&view=rev
Log:
Fix 64bit build
Modified:
trunk/gscript/gscriptinternal.c
trunk/gscript/gscriptvalue.c
Modified: trunk/gscript/gscriptinternal.c
==============================================================================
--- trunk/gscript/gscriptinternal.c (original)
+++ trunk/gscript/gscriptinternal.c Tue Sep 16 08:15:48 2008
@@ -1092,7 +1092,7 @@
JSPROP_ENUMERATE);
infop = g_new (GIFunctionInfo *, 1);
- g_assert (((int)infop) % 2 == 0);
+ g_assert (((gsize)infop) % 2 == 0);
*infop = info;
f_obj = JS_GetFunctionObject (f);
Modified: trunk/gscript/gscriptvalue.c
==============================================================================
--- trunk/gscript/gscriptvalue.c (original)
+++ trunk/gscript/gscriptvalue.c Tue Sep 16 08:15:48 2008
@@ -364,7 +364,7 @@
new_value->value = OBJECT_TO_JSVAL (object);
nativep = g_new (GScriptNativeFunction, 1);
- g_assert (((int)nativep) % 2 == 0);
+ g_assert (((gsize)nativep) % 2 == 0);
*nativep = function;
if (!JS_SetReservedSlot (cx, object, 0, PRIVATE_TO_JSVAL (nativep)))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]