Skip to content

Commit 5c66b6f

Browse files
authored
Merge pull request #218 from xloem/range-comparison
resolve noop comparison warning
2 parents 6d2e820 + ca5947b commit 5c66b6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zmq/certificate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ bool certificate::create(config::sodium& out_public,
7979
{
8080
// Loop until neither key's base85 encoding includes the # character.
8181
// This ensures that the value can be used in libbitcoin settings files.
82-
for (uint8_t attempt = 0; attempt <= max_uint8; attempt++)
82+
for (uint8_t attempt = 0; attempt < max_uint8; attempt++)
8383
{
8484
char public_key[zmq_encoded_key_size + 1] = { 0 };
8585
char private_key[zmq_encoded_key_size + 1] = { 0 };

0 commit comments

Comments
 (0)