[macruby-changes] [2321] MacRuby/trunk/bignum.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Aug 14 04:59:47 PDT 2009
Revision: 2321
http://trac.macosforge.org/projects/ruby/changeset/2321
Author: vincent.isambart at gmail.com
Date: 2009-08-14 04:59:46 -0700 (Fri, 14 Aug 2009)
Log Message:
-----------
fix for bignums on Leopard
Modified Paths:
--------------
MacRuby/trunk/bignum.c
Modified: MacRuby/trunk/bignum.c
===================================================================
--- MacRuby/trunk/bignum.c 2009-08-14 09:22:47 UTC (rev 2320)
+++ MacRuby/trunk/bignum.c 2009-08-14 11:59:46 UTC (rev 2321)
@@ -875,10 +875,10 @@
num %= hbase;
}
if (trim && ds[i-1] == 0) i--;
-#ifdef __LP64__
+#if defined(__LP64__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
k = SIZEOF_BDIGITS/2;
#else
- k = SIZEOF_BDIGITS;
+ k = SIZEOF_BDIGITS;
#endif
while (k--) {
ptr[--j] = ruby_digitmap[num % base];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090814/8b984411/attachment.html>
More information about the macruby-changes
mailing list