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 6cd0222f2f..69be3b21ba 100644
--- a/gc.c
+++ b/gc.c
@@ -1548,6 +1548,6 @@ Init_GC()
source_filenames = st_init_strtable();
- nomem_error = rb_exc_new(rb_eNoMemError, "failed to allocate memory");
+ nomem_error = rb_exc_new2(rb_eNoMemError, "failed to allocate memory");
rb_global_variable(&nomem_error);
}