OSDN Git Service

2009-06-08 Andrew Haley <aph@redhat.com>
[pf3gnuchains/gcc-fork.git] / libffi / testsuite / libffi.call / closure_fn4.c
index 74506f3..9a70b99 100644 (file)
@@ -25,7 +25,7 @@ closure_test_fn0(ffi_cif* cif __UNUSED__, void* resp, void** args,
     (int)*(unsigned long long *)args[12] +
     (int)*(unsigned long long *)args[13] +
     (int)*(unsigned long long *)args[14] +
-    *(int *)args[15] + (int)(long)userdata;
+    *(int *)args[15] + (intptr_t)userdata;
 
   printf("%d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d %d: %d\n",
         (int)*(unsigned long long *)args[0],
@@ -44,7 +44,7 @@ closure_test_fn0(ffi_cif* cif __UNUSED__, void* resp, void** args,
         (int)*(unsigned long long *)args[13],
         (int)*(unsigned long long *)args[14],
         *(int *)args[15],
-        (int)(long)userdata, (int)*(ffi_arg *)resp);
+        (int)(intptr_t)userdata, (int)*(ffi_arg *)resp);
 
 }