Eliminate additional undefined behavior of bit shifting signed int.

This commit is contained in:
Chad Fraleigh 2023-08-14 19:21:30 -07:00
parent 47dc5591b9
commit a1f83bf0f9
No known key found for this signature in database
GPG key ID: 2415C39758458A8F

View file

@ -269,7 +269,7 @@ namespace data
size_t Base32ToByteStream (const char * inBuf, size_t len, uint8_t * outBuf, size_t outLen) size_t Base32ToByteStream (const char * inBuf, size_t len, uint8_t * outBuf, size_t outLen)
{ {
int tmp = 0, bits = 0; unsigned int tmp = 0, bits = 0;
size_t ret = 0; size_t ret = 0;
for (size_t i = 0; i < len; i++) for (size_t i = 0; i < len; i++)
{ {