Revision
4526
Author
lsansonetti@apple.com
Date
2010-09-17 17:54:48 -0700 (Fri, 17 Sep 2010)

Log Message

fix integer truncation bug

Modified Paths

Diff

Modified: MacRuby/trunk/ext/bigdecimal/bigdecimal.c (4525 => 4526)


--- MacRuby/trunk/ext/bigdecimal/bigdecimal.c	2010-09-17 21:56:59 UTC (rev 4525)
+++ MacRuby/trunk/ext/bigdecimal/bigdecimal.c	2010-09-18 00:54:48 UTC (rev 4526)
@@ -2178,7 +2178,7 @@
 VP_EXPORT void *
 VpMemAlloc(size_t mb)
 {
-    void *p = xmalloc((unsigned int)mb);
+    void *p = xmalloc(mb);
     if(!p) {
         VpException(VP_EXCEPTION_MEMORY,"failed to allocate memory",1);
     }