summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
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 aacc792bd0..630971d580 100644
--- a/gc.c
+++ b/gc.c
@@ -512,7 +512,7 @@ rb_objspace_free(rb_objspace_t *objspace)
/* 2KB */
/*#define HEAP_SIZE 0x800 */
-#define HEAP_OBJ_LIMIT (HEAP_SIZE / sizeof(struct RVALUE))
+#define HEAP_OBJ_LIMIT (unsigned int)(HEAP_SIZE / sizeof(struct RVALUE))
extern st_table *rb_class_tbl;