pic_errof requires pic_value

This commit is contained in:
Sunrin SHIMURA (keen) 2015-10-02 13:49:32 +09:00
parent 69d9a212ed
commit 5691739272
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ vm_gref(pic_state *pic, struct pic_box *slot, pic_sym *uid)
if (uid == NULL) { if (uid == NULL) {
uid = pic_intern(pic, "unknown"); /* FIXME */ uid = pic_intern(pic, "unknown"); /* FIXME */
} }
pic_errorf(pic, "uninitialized global variable: ~a", uid); pic_errorf(pic, "uninitialized global variable: ~a", pic_obj_value(uid));
} }
return slot->value; return slot->value;
} }