Commit 5e6aa58a authored by Pieter Hintjens's avatar Pieter Hintjens

Fixed issue 578 - corrected type usage

parent d7c8021a
......@@ -148,8 +148,8 @@ uint8_t *zmq_z85_decode (uint8_t *dest, char *string)
}
unsigned int byte_nbr = 0;
unsigned int char_nbr = 0;
unsigned int string_len = strlen (string);
uint32_t value = 0;
uint string_len = strlen (string);
while (char_nbr < string_len) {
// Accumulate value in base 85
value = value * 85 + decoder [(uint8_t) string [char_nbr++] - 32];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment