summaryrefslogtreecommitdiff
path: root/functions.m
diff options
context:
space:
mode:
Diffstat (limited to 'functions.m')
-rw-r--r--functions.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions.m b/functions.m
index 068d217..ef3e6c3 100644
--- a/functions.m
+++ b/functions.m
@@ -48,10 +48,12 @@ id MLKFixnumWithInt (intptr_t value)
id MLKIntegerWithInt (intptr_t value)
{
+#ifndef NO_FIXNUMS
intptr_t maybeFixnum = (value << 1) | 1;
if (value == (maybeFixnum >> 1))
return (id)maybeFixnum;
else
+#endif
return [MLKInteger integerWithIntptr_t:value];
}