mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
uh, type "uint" unknown here, using size_t instead.
This commit is contained in:
@@ -91,7 +91,7 @@ uint8_t *zmq_z85_decode (uint8_t *dest, char *string)
|
|||||||
unsigned int byte_nbr = 0;
|
unsigned int byte_nbr = 0;
|
||||||
unsigned int char_nbr = 0;
|
unsigned int char_nbr = 0;
|
||||||
uint32_t value = 0;
|
uint32_t value = 0;
|
||||||
uint string_len = strlen (string);
|
size_t string_len = strlen (string);
|
||||||
while (char_nbr < string_len) {
|
while (char_nbr < string_len) {
|
||||||
// Accumulate value in base 85
|
// Accumulate value in base 85
|
||||||
value = value * 85 + decoder [(uint8_t) string [char_nbr++] - 32];
|
value = value * 85 + decoder [(uint8_t) string [char_nbr++] - 32];
|
||||||
|
|||||||
Reference in New Issue
Block a user