Fix incorrect hashing of classes in fallback added for subclass tracking
This commit is contained in:
parent
aa6781609e
commit
7dff49ccb7
@ -50,7 +50,8 @@ inline int krk_hashValue(KrkValue value, uint32_t *hashOut) {
|
||||
return 0;
|
||||
}
|
||||
if (IS_CLASS(value)) {
|
||||
return INTEGER_VAL((int)(intptr_t)AS_OBJECT(value));
|
||||
*hashOut = INTEGER_VAL((int)(intptr_t)AS_OBJECT(value));
|
||||
return 0;
|
||||
}
|
||||
_unhashable:
|
||||
if (IS_NONE(krk_currentThread.currentException))
|
||||
|
Loading…
x
Reference in New Issue
Block a user