cls_uint.c (cls_ret_uint_fn): Treat result value as of type ffi_arg, not unsigned...
authorUlrich Weigand <uweigand@de.ibm.com>
Thu, 22 Jan 2004 23:05:13 +0000 (23:05 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Thu, 22 Jan 2004 23:05:13 +0000 (23:05 +0000)
* testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
value as of type ffi_arg, not unsigned int.

From-SVN: r76377

libffi/ChangeLog
libffi/testsuite/libffi.call/cls_uint.c

index f0147bc146b49331e2352ee00ef4adad75a25fb1..863e7d1f4218c911e3885ff9b62d9d754ec4d2f0 100644 (file)
@@ -1,3 +1,8 @@
+2004-01-22  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
+       value as of type ffi_arg, not unsigned int.
+
 2004-01-21  Michael Ritzert  <ritzert@t-online.de>
 
        * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
index 501e179fd7fa35e0ce4f06cfdfd374bc006d0303..e24e7bd44b6d265fa8c81a7c10fc822b7f57bfdc 100644 (file)
 static void cls_ret_uint_fn(ffi_cif* cif,void* resp,void** args,
                             void* userdata)
  {
-   *(unsigned int*)resp = *(unsigned int *)args[0];
+   *(ffi_arg *)resp = *(unsigned int *)args[0];
 
    printf("%d: %d\n",*(unsigned int *)args[0],
-         *(unsigned int *)resp);
+         *(ffi_arg *)resp);
  }
 typedef unsigned int (*cls_ret_uint)(unsigned int);