fix SWI functor handling to work with 32 bits. (for now)
This commit is contained in:
parent
2713ac27b6
commit
af6bf40985
@ -49,6 +49,7 @@
|
|||||||
|
|
||||||
extern X_API Int YAP_PLArityOfSWIFunctor(functor_t at);
|
extern X_API Int YAP_PLArityOfSWIFunctor(functor_t at);
|
||||||
|
|
||||||
|
/* This is silly, but let's keep it like that for now */
|
||||||
X_API Int
|
X_API Int
|
||||||
YAP_PLArityOfSWIFunctor(functor_t f) {
|
YAP_PLArityOfSWIFunctor(functor_t f) {
|
||||||
if ((CELL)(f) & 2 && ((CELL)f) < N_SWI_FUNCTORS*4+2)
|
if ((CELL)(f) & 2 && ((CELL)f) < N_SWI_FUNCTORS*4+2)
|
||||||
|
@ -114,6 +114,7 @@ FunctorToSWIFunctor(Functor at)
|
|||||||
return (functor_t)at;
|
return (functor_t)at;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* This is silly, but let's keep it like that for now */
|
||||||
static inline Functor
|
static inline Functor
|
||||||
SWIFunctorToFunctor(functor_t f)
|
SWIFunctorToFunctor(functor_t f)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user