mirror of
https://github.com/google/blockly.git
synced 2026-01-10 18:37:09 +01:00
Block generator warnings (#3353)
This commit is contained in:
@@ -76,7 +76,7 @@ Blockly.Python['math_single'] = function(block) {
|
||||
var arg;
|
||||
if (operator == 'NEG') {
|
||||
// Negation is a special case given its different operator precedence.
|
||||
var code = Blockly.Python.valueToCode(block, 'NUM',
|
||||
code = Blockly.Python.valueToCode(block, 'NUM',
|
||||
Blockly.Python.ORDER_UNARY_SIGN) || '0';
|
||||
return ['-' + code, Blockly.Python.ORDER_UNARY_SIGN];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user