small fixes per chris's comments

This commit is contained in:
Lu Guanqun
2015-02-10 23:39:13 +08:00
parent 2f15494f83
commit 466f0e0100
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ BOOST_AUTO_TEST_CASE(exp_operator_const_signed)
{
char const* sourceCode = R"(
contract test {
function f() returns(int d) { return -2 ** 3; }
function f() returns(int d) { return (-2) ** 3; }
})";
compileAndRun(sourceCode);
BOOST_CHECK(callContractFunction("f()", bytes()) == toBigEndian(u256(-8)));