DE-labtory / koa

The koa is a high-level language that has more expressions than the bitcoin script and is simpler and easy to analyze
Apache License 2.0
74 stars 18 forks source link

[compiler] Fix bug in compileIntegerLiteral #281

Closed hihiboss closed 5 years ago

hihiboss commented 5 years ago

Where compiler

Bug detail in compileIntegerLiteral(), this function should check whether the value is greater than 0 or not.

Fix plan If the value is less than 0, you should emerge Minus opcode.

Reference

280