This commit is contained in:
2022-08-21 00:36:05 +01:00
parent b385b461e0
commit dc1914b9ed
2 changed files with 4 additions and 7 deletions

View File

@@ -381,7 +381,8 @@ bool literalsAreEqual(Literal lhs, Literal rhs) {
}
switch(lhs.type) {
//NOTE: null covered by check at the top of the function
case LITERAL_NULL:
return true; //can only be true because of the check above
case LITERAL_BOOLEAN:
return AS_BOOLEAN(lhs) == AS_BOOLEAN(rhs);