Update inc_hash_base58.cl

Fix the logic error in the loop
This commit is contained in:
0x588 2023-11-08 17:08:58 +08:00
parent adbcef6909
commit a196cfe01c
1 changed files with 1 additions and 1 deletions

View File

@ -578,7 +578,7 @@ DECLSPEC bool b58enc (PRIVATE_AS u8 *b58, PRIVATE_AS u32 *b58sz, PRIVATE_AS cons
j = 0;
for (; j < (size && !buf[j]); j++) {}
for (; j < size && !buf[j]; j++) {}
if (*b58sz <= zcount + size - j)
{