summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-20 23:55:09 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-04-20 23:55:09 +0000
commitfd8734a64d3de5a6d94061633ed719f068c1e723 (patch)
tree91c586bd5b09e2e4e237f8d9ab4941713cee3d40 /gc.c
parent45acd59d2db8ec12a0a048b1c79ebb8acf68b995 (diff)
* gc.c (ruby_xmalloc): use size_t for malloc argument instead of long.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 1a826fbc54..ce1878e654 100644
--- a/gc.c
+++ b/gc.c
@@ -314,7 +314,7 @@ ruby_xmalloc(size_t size)
void *
ruby_xmalloc2(size_t n, size_t size)
{
- long len = size * n;
+ size_t len = size * n;
if (n != 0 && size != len / n) {
rb_raise(rb_eArgError, "malloc: possible integer overflow");
}