[macruby-changes] [4526] MacRuby/trunk/ext/bigdecimal/bigdecimal.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 17 17:54:49 PDT 2010
Revision: 4526
http://trac.macosforge.org/projects/ruby/changeset/4526
Author: lsansonetti at apple.com
Date: 2010-09-17 17:54:48 -0700 (Fri, 17 Sep 2010)
Log Message:
-----------
fix integer truncation bug
Modified Paths:
--------------
MacRuby/trunk/ext/bigdecimal/bigdecimal.c
Modified: MacRuby/trunk/ext/bigdecimal/bigdecimal.c
===================================================================
--- 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);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100917/49a4f8a6/attachment.html>
More information about the macruby-changes
mailing list