Fix compiler warnings in unit tests. (#488)

This commit is contained in:
Jonathan Hui
2016-08-29 11:41:59 -07:00
committed by GitHub
parent 1bb82c54ec
commit 6d958ba51b
5 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ void DumpBuffer(const char *aTextMessage, uint8_t *aBuffer, uint16_t aBufferLeng
{
byte = *aBuffer++;
printf("%02X ", byte);
charBuff[counter] = isprint(byte) ? byte : '.';
charBuff[counter] = isprint(byte) ? static_cast<char>(byte) : '.';
counter++;
if (counter == kBytesPerLine)