mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +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 ();
|
||||
}
|
||||
vp->ip = p->ip;
|
||||
vp->sp = vp->stack_limit - (int) p->sp;
|
||||
vp->fp = vp->stack_limit - (int) p->fp;
|
||||
vp->sp = vp->stack_limit - (intptr_t) p->sp;
|
||||
vp->fp = vp->stack_limit - (intptr_t) p->fp;
|
||||
memcpy (vp->sp + 1, p->stack_base, p->stack_size * sizeof (SCM));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue