Skip to content

Commit

Permalink
Merge pull request #161 from ewasm/stack-trace-fix
Browse files Browse the repository at this point in the history
make sure the first item in the stack is printed
  • Loading branch information
axic authored Mar 14, 2018
2 parents c4641d4 + d93b305 commit 589eb65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eei.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ string toHex(evm_uint256be const& value) {
<< ",\"pc\":" << pc
<< ",\"stack\":[";

for (int32_t i = sp; i > 0; i -= stackItemSize) {
for (int32_t i = sp; i >= 0; i -= stackItemSize) {
if (i != sp)
cout << ',';
evm_uint256be x = loadUint256(static_cast<uint32_t>(i));
Expand Down

0 comments on commit 589eb65

Please sign in to comment.