Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
fix #78
Browse files Browse the repository at this point in the history
  • Loading branch information
bytemaster committed Jul 20, 2017
1 parent f01431d commit 2729536
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/eoslib/types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace eos {
if( c >= 'a' && c <= 'z' )
return (c - 'a') + 1;
if( c >= '1' && c <= '5' )
return (c - '1') + 26;
return (c - '1') + 27;
return 0;
}

Expand All @@ -31,7 +31,7 @@ namespace eos {
value |= char_to_symbol( str[ len -1 - i ] );
}

if( len == 13 ) {
if( len >= 13 ) {
value <<= 4;
value |= 0x0f & char_to_symbol( str[ 12 ] );
}
Expand Down

0 comments on commit 2729536

Please sign in to comment.