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(); JMPNext();
} }
#endif #endif
#ifdef SHADOW_S
S = SREG;
#endif /* SHADOW_S */
saveregs(); saveregs();
pt0 = Yap_ExpandIndex(pe, 0); pt0 = Yap_ExpandIndex(pe, 0);
/* restart index */ /* restart index */
setregs(); setregs();
#ifdef SHADOW_S
SREG = S;
#endif /* SHADOW_S */
PREG = pt0; PREG = pt0;
#if defined(YAPOR) || defined(THREADS) #if defined(YAPOR) || defined(THREADS)
if (!PP) if (!PP)