From 28f8fe4101615a922467ebab7a7cc6af48b5bf4b Mon Sep 17 00:00:00 2001 From: romanman Date: Mon, 26 May 2014 23:24:51 +0300 Subject: [PATCH] Label encoding bug --- .gitignore | 1 + .../src/main/java/org/ethereum/serpent/SerpentCompiler.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 9286baf4..60e940b4 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ bin *.db *.xlsx +/gen diff --git a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentCompiler.java b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentCompiler.java index 1c9795eb..91f99390 100644 --- a/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentCompiler.java +++ b/ethereumj-core/src/main/java/org/ethereum/serpent/SerpentCompiler.java @@ -81,8 +81,7 @@ public class SerpentCompiler { String labelNum = label.split("LABEL_")[1]; labels.put(labelNum, i); - - ++i; + --i; } // encode all ref occurrence