1
Fork 0
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:
Andy Wingo 2008-08-26 13:43:17 -07:00
parent b264227691
commit 1976ad74b8

View file

@ -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));
}