64 bit machines may be using S while calling ExpandIndex.

This commit is contained in:
Costa Vitor 2009-08-19 20:22:04 -05:00
parent 40ea33c150
commit 418fa1a396

View File

@ -7901,10 +7901,16 @@ Yap_absmi(int inp)
JMPNext();
}
#endif
#ifdef SHADOW_S
S = SREG;
#endif /* SHADOW_S */
saveregs();
pt0 = Yap_ExpandIndex(pe, 0);
/* restart index */
setregs();
#ifdef SHADOW_S
SREG = S;
#endif /* SHADOW_S */
PREG = pt0;
#if defined(YAPOR) || defined(THREADS)
if (!PP)