diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-22 23:05:13 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-01-22 23:05:13 +0000 |
commit | 1e0ee4d8b23994c6dc56582e3db84afe549c7c23 (patch) | |
tree | 263975aa4dd6796b2d268bd2583bb0bea2841816 /libffi | |
parent | 04fb18a34c88b7579f4c292371a495d4e513a559 (diff) | |
download | gcc-1e0ee4d8b23994c6dc56582e3db84afe549c7c23.tar.gz |
* testsuite/libffi.call/cls_uint.c (cls_ret_uint_fn): Treat result
value as of type ffi_arg, not unsigned int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76377 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/testsuite/libffi.call/cls_uint.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index f0147bc146b..863e7d1f421 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -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 diff --git a/libffi/testsuite/libffi.call/cls_uint.c b/libffi/testsuite/libffi.call/cls_uint.c index 501e179fd7f..e24e7bd44b6 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); |