mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Resolved #13
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
//BUG: this causes a strange error message
|
//BUG: this causes a strange error message
|
||||||
if (true) {
|
if (true);
|
||||||
;
|
else;
|
||||||
}
|
|
||||||
else {
|
|
||||||
;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -381,7 +381,8 @@ bool literalsAreEqual(Literal lhs, Literal rhs) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch(lhs.type) {
|
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:
|
case LITERAL_BOOLEAN:
|
||||||
return AS_BOOLEAN(lhs) == AS_BOOLEAN(rhs);
|
return AS_BOOLEAN(lhs) == AS_BOOLEAN(rhs);
|
||||||
|
|||||||
Reference in New Issue
Block a user