mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 19:10:22 +01:00
Fixed issue 578 - corrected type usage
This commit is contained in:
@@ -148,8 +148,8 @@ 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;
|
||||||
|
unsigned int string_len = strlen (string);
|
||||||
uint32_t value = 0;
|
uint32_t value = 0;
|
||||||
uint 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