mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-21 14:49:58 +08:00
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
This commit is contained in:
parent
d0d969f8e7
commit
6ed0ecaf30
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user