mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
0e8574f5bd
commit
3d6ecd45c7
1 changed files with 2 additions and 2 deletions
4
gc.c
4
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");
|
||||
|
|
Loading…
Reference in a new issue