mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 06:50:31 +02:00
fix casting-pointers-to-ints bug
* libguile/vm.c: Cast pointers to intptr_t, not int. Patch from C. K. Jester-Young <cky944 <at> gmail.com>.
This commit is contained in:
parent
b264227691
commit
1976ad74b8
1 changed files with 2 additions and 2 deletions
|
@ -94,8 +94,8 @@ reinstate_vm_cont (struct scm_vm *vp, SCM cont)
|
||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
vp->ip = p->ip;
|
vp->ip = p->ip;
|
||||||
vp->sp = vp->stack_limit - (int) p->sp;
|
vp->sp = vp->stack_limit - (intptr_t) p->sp;
|
||||||
vp->fp = vp->stack_limit - (int) p->fp;
|
vp->fp = vp->stack_limit - (intptr_t) p->fp;
|
||||||
memcpy (vp->sp + 1, p->stack_base, p->stack_size * sizeof (SCM));
|
memcpy (vp->sp + 1, p->stack_base, p->stack_size * sizeof (SCM));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue