mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Quick potential bugfix
This commit is contained in:
@@ -171,6 +171,12 @@ static int nativeToString(Toy_Interpreter* interpreter, Toy_LiteralArray* argume
|
|||||||
Toy_freeLiteral(selfLiteralIdn);
|
Toy_freeLiteral(selfLiteralIdn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//BUGFIX: probably an undefined variable
|
||||||
|
if (TOY_IS_IDENTIFIER(selfLiteral)) {
|
||||||
|
Toy_freeLiteral(selfLiteral);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
//print it to a custom function
|
//print it to a custom function
|
||||||
Toy_printLiteralCustom(selfLiteral, toStringUtil);
|
Toy_printLiteralCustom(selfLiteral, toStringUtil);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user