eq? compares symbol's ptr
This commit is contained in:
parent
7322271d65
commit
510b84702e
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue