diff --git a/core/asm/compiler.go b/core/asm/compiler.go index 4b1d379206..ce2d23abd0 100644 --- a/core/asm/compiler.go +++ b/core/asm/compiler.go @@ -157,12 +157,13 @@ func (c *Compiler) compileLine() error { } // compileNumber compiles the number to bytes -func (c *Compiler) compileNumber(element token) { +func (c *Compiler) compileNumber(element token) (int, error) { num := math.MustParseBig256(element.text).Bytes() if len(num) == 0 { num = []byte{0} } c.pushBin(num) + return len(num), nil } // compileElement compiles the element (push & label or both)