porffor 0.37.10 → 0.37.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/compiler/2c.js +3 -3
- package/package.json +1 -1
- package/runner/index.js +1 -1
package/compiler/2c.js
CHANGED
@@ -473,9 +473,9 @@ export default ({ funcs, globals, tags, data, exceptions, pages }) => {
|
|
473
473
|
if (lastCond) {
|
474
474
|
vals.push(`!(${removeBrackets(vals.pop())})`);
|
475
475
|
} else {
|
476
|
-
let cond = '(' + removeBrackets(vals.pop());
|
477
|
-
if (cond.startsWith(`(i32)`)) cond = `${cond.slice(5)} == 0e+0`;
|
478
|
-
else cond += ') == 0';
|
476
|
+
let cond = '((' + removeBrackets(vals.pop());
|
477
|
+
if (cond.startsWith(`((i32)`)) cond = `${cond.slice(5)}) == 0e+0)`;
|
478
|
+
else cond += ') == 0)';
|
479
479
|
vals.push(cond);
|
480
480
|
}
|
481
481
|
lastCond = true;
|
package/package.json
CHANGED