Skip to content

Commit

Permalink
Fix RLP encodeHexData casting
Browse files Browse the repository at this point in the history
  • Loading branch information
fractasy committed Sep 17, 2024
1 parent 8ed4340 commit b39dc54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/rlp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ inline bool encodeHexData(string &data, const string &hex)
string edata;

bool res = encodeHexValue(edata, hex);
if (edata.length() != 1 || edata[0] >= 0x80) {
if (edata.length() != 1 || uint8_t(edata[0]) >= 0x80) {
encodeLen(data, len);
}
data += edata;
Expand Down

0 comments on commit b39dc54

Please sign in to comment.