From: Ulrich Weigand Date: Thu, 22 Jan 2004 23:05:13 +0000 (+0000) Subject: cls_uint.c (cls_ret_uint_fn): Treat result value as of type ffi_arg, not unsigned... X-Git-Tag: releases/gcc-4.0.0~10829 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ed0ecaf3064ca9eb0e537db3a9264ef1f8eee36;p=thirdparty%2Fgcc.git cls_uint.c (cls_ret_uint_fn): Treat result value as of type ffi_arg, not unsigned int. * testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result value as of type ffi_arg, not unsigned int. From-SVN: r76377 --- diff --git a/libffi/ChangeLog b/libffi/ChangeLog index f0147bc146b4..863e7d1f4218 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +2004-01-22 Ulrich Weigand + + * 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 * ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead diff --git a/libffi/testsuite/libffi.call/cls_uint.c b/libffi/testsuite/libffi.call/cls_uint.c index 501e179fd7fa..e24e7bd44b6d 100644 --- a/libffi/testsuite/libffi.call/cls_uint.c +++ b/libffi/testsuite/libffi.call/cls_uint.c @@ -10,10 +10,10 @@ 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);