Browse Source

Eliminate additional undefined behavior of bit shifting signed int.

cpu
Chad Fraleigh 1 year ago committed by R4SAS
parent
commit
662a59d0fd
  1. 2
      libi2pd/Base.cpp

2
libi2pd/Base.cpp

@ -272,7 +272,7 @@ namespace data @@ -272,7 +272,7 @@ namespace data
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;
for (size_t i = 0; i < len; i++)
{

Loading…
Cancel
Save