eq? compares symbol's ptr

This commit is contained in:
Yuichi Nishiwaki 2013-10-20 14:07:27 +09:00
parent 7322271d65
commit 510b84702e
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ pic_eq_p(pic_state *pic, pic_value x, pic_value y)
case PIC_TT_NIL: case PIC_TT_NIL:
return true; return true;
case PIC_TT_SYMBOL: case PIC_TT_SYMBOL:
return strcmp(pic_symbol_ptr(x)->name, pic_symbol_ptr(y)->name) == 0; return pic_symbol_ptr(x) == pic_symbol_ptr(y);
default: default:
return false; return false;
} }