summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 11:02:43 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-18 11:02:43 +0000
commit3d6ecd45c7904a18687adf151ee89c1f37ba5b9c (patch)
tree5464870ab9c73ea55dd64f2fd8f704a1d1077b0d /gc.c
parent0e8574f5bda308d750e34c5d28286c2992667833 (diff)
fix type
struct RVALUE.file is const char*. struct RVALUE.line is int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gc.c b/gc.c
index 220c63af81..b7ac5486a8 100644
--- a/gc.c
+++ b/gc.c
@@ -371,7 +371,7 @@ typedef struct RVALUE {
} as;
#if GC_DEBUG
const char *file;
- VALUE line;
+ int line;
#endif
} RVALUE;
@@ -7503,7 +7503,7 @@ rb_gcdebug_print_obj_condition(VALUE obj)
{
rb_objspace_t *objspace = &rb_objspace;
- fprintf(stderr, "created at: %s:%d\n", RSTRING_PTR(RANY(obj)->file), FIX2INT(RANY(obj)->line));
+ fprintf(stderr, "created at: %s:%d\n", RANY(obj)->file, RANY(obj)->line);
if (is_pointer_to_heap(objspace, (void *)obj)) {
fprintf(stderr, "pointer to heap?: true\n");