Fix integer narrowing issues.

This commit is contained in:
evoskuil
2015-04-21 22:26:32 -07:00
parent 88ac63189c
commit 30bd7c481e
11 changed files with 34 additions and 28 deletions

View File

@@ -155,7 +155,7 @@ uint8_t *zmq_z85_decode (uint8_t *dest, const char *string)
}
unsigned int byte_nbr = 0;
unsigned int char_nbr = 0;
unsigned int string_len = strlen (string);
size_t string_len = strlen (string);
uint32_t value = 0;
while (char_nbr < string_len) {
// Accumulate value in base 85