mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
Revert "core/asm: remove unused return value (#27272)"
This reverts commit a0c2037a67.
This commit is contained in:
parent
0037a97987
commit
3b50f2bf7d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue