提交 2729536b 编写于 作者: D Daniel Larimer

fix #78

上级 f01431d8
......@@ -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;
}
......@@ -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 ] );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册