Commit c930d8a5 by Michael Ritzert Committed by Andreas Jaeger

ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead of the LHS.

2004-01-21  Michael Ritzert  <ritzert@t-online.de>

	* ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
	of the LHS.

From-SVN: r76261
parent 13544b81
2004-01-21 Michael Ritzert <ritzert@t-online.de>
* ffi64.c (ffi_prep_args): Cast the RHS of an assignment instead
of the LHS.
2004-01-12 Andreas Tobler <a.tobler@schweiz.ch> 2004-01-12 Andreas Tobler <a.tobler@schweiz.ch>
* testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for * testsuite/lib/libffi-dg.exp: Set LD_LIBRARY_PATH_32 for
......
...@@ -288,7 +288,7 @@ ffi_prep_args (stackLayout *stack, extended_cif *ecif) ...@@ -288,7 +288,7 @@ ffi_prep_args (stackLayout *stack, extended_cif *ecif)
gprcount = ssecount = 0; gprcount = ssecount = 0;
if (ecif->cif->rtype->type != FFI_TYPE_VOID if (ecif->cif->rtype->type != FFI_TYPE_VOID
&& examine_argument (ecif->cif->rtype, 1, &g, &s) == 0) && examine_argument (ecif->cif->rtype, 1, &g, &s) == 0)
(void *)stack->gpr[gprcount++] = ecif->rvalue; stack->gpr[gprcount++] = (long) ecif->rvalue;
for (i=ecif->cif->nargs, p_arg=ecif->cif->arg_types, p_argv = ecif->avalue; for (i=ecif->cif->nargs, p_arg=ecif->cif->arg_types, p_argv = ecif->avalue;
i!=0; i--, p_arg++, p_argv++) i!=0; i--, p_arg++, p_argv++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment