This commit is contained in:
Yuichi Nishiwaki 2015-06-19 23:34:12 +09:00
parent 32653df178
commit ad6833ac79
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ pic_value
pic_record_ref(pic_state *pic, struct pic_record *rec, pic_sym *slot) pic_record_ref(pic_state *pic, struct pic_record *rec, pic_sym *slot)
{ {
if (! pic_dict_has(pic, rec->data, slot)) { if (! pic_dict_has(pic, rec->data, slot)) {
pic_errorf(pic, "slot named ~s is not found for record: ~s", pic_obj_value(slot), rec); pic_errorf(pic, "slot named ~s is not found for record: ~s", pic_obj_value(slot), pic_obj_value(rec));
} }
return pic_dict_ref(pic, rec->data, slot); return pic_dict_ref(pic, rec->data, slot);
} }