aboutsummaryrefslogtreecommitdiffstats
path: root/rlp.cpp
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2014-10-17 01:17:27 +0800
committerGav Wood <g@ethdev.com>2014-10-17 01:17:27 +0800
commit693fe08bc996ff8403c75a770a735916dae4fc5b (patch)
tree4c7cfe7f09b78ebe7929ff628e7686bf59d7c48b /rlp.cpp
parentb5bd1cc521471b740095e1b62d319909cb5d173d (diff)
parent6d3cf5fad9e8e5b894177ba617eeb1ba9203771e (diff)
downloaddexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.tar
dexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.tar.gz
dexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.tar.bz2
dexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.tar.lz
dexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.tar.xz
dexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.tar.zst
dexon-solidity-693fe08bc996ff8403c75a770a735916dae4fc5b.zip
Merge pull request #383 from imapp-pl/pr-fixes
Prepare VM test engine for running JIT-ed tests (+ a bugfix)
Diffstat (limited to 'rlp.cpp')
-rw-r--r--rlp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rlp.cpp b/rlp.cpp
index 95d40ada..69360ad6 100644
--- a/rlp.cpp
+++ b/rlp.cpp
@@ -79,7 +79,7 @@ namespace dev
if ( v.type() == js::str_type )
{
const std::string& expectedText = v.get_str();
- if ( expectedText.front() == '#' )
+ if ( !expectedText.empty() && expectedText.front() == '#' )
{
// Deal with bigint instead of a raw string
std::string bigIntStr = expectedText.substr(1,expectedText.length()-1);