You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix positive operator in GDScript compiler
This commit is contained in:
@@ -738,6 +738,9 @@ int GDScriptCompiler::_parse_expression(CodeGen &codegen, const GDScriptParser::
|
|||||||
case GDScriptParser::OperatorNode::OP_NEG: {
|
case GDScriptParser::OperatorNode::OP_NEG: {
|
||||||
if (!_create_unary_operator(codegen, on, Variant::OP_NEGATE, p_stack_level)) return -1;
|
if (!_create_unary_operator(codegen, on, Variant::OP_NEGATE, p_stack_level)) return -1;
|
||||||
} break;
|
} break;
|
||||||
|
case GDScriptParser::OperatorNode::OP_POS: {
|
||||||
|
if (!_create_unary_operator(codegen, on, Variant::OP_POSITIVE, p_stack_level)) return -1;
|
||||||
|
} break;
|
||||||
case GDScriptParser::OperatorNode::OP_NOT: {
|
case GDScriptParser::OperatorNode::OP_NOT: {
|
||||||
if (!_create_unary_operator(codegen, on, Variant::OP_NOT, p_stack_level)) return -1;
|
if (!_create_unary_operator(codegen, on, Variant::OP_NOT, p_stack_level)) return -1;
|
||||||
} break;
|
} break;
|
||||||
|
|||||||
Reference in New Issue
Block a user