mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-16 07:14:07 +10:00
Can no longer use functions as dictionary keys
This commit is contained in:
@@ -380,7 +380,8 @@ int hashLiteral(Literal lit) {
|
||||
}
|
||||
|
||||
case LITERAL_FUNCTION:
|
||||
return 0;
|
||||
case LITERAL_FUNCTION_NATIVE:
|
||||
return 0; //TODO: find a way to hash these properly
|
||||
|
||||
case LITERAL_IDENTIFIER:
|
||||
return HASH_I(lit); //pre-computed
|
||||
|
||||
Reference in New Issue
Block a user