Skip to content

Commit

Permalink
(datachainlab#42) unit0 encoding failure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Soo Hwang committed Dec 17, 2023
1 parent 0eb832a commit 3f34b2d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2922,7 +2922,7 @@ library ProtoBufRuntime {
uint256 base = 0xff;
uint256 realSize = sz;
while (
x & (base << (realSize * BYTE_SIZE - BYTE_SIZE)) == 0 && realSize > 0
realSize > 0 && x & (base << (realSize * BYTE_SIZE - BYTE_SIZE)) == 0
) {
realSize -= 1;
}
Expand Down

0 comments on commit 3f34b2d

Please sign in to comment.