JANITORIAL: Fix some MSVC warnings

This commit is contained in:
Orgad Shaneh 2021-07-22 00:02:37 +03:00
parent 3cb4e0a3a7
commit dd792e9e87
2 changed files with 4 additions and 4 deletions

View File

@ -144,7 +144,7 @@ public:
_stream(stream), _disposeAfterUse(disposeAfterUse), _bitContainer(0), _bitsLeft(0), _pos(0) {
if ((valueBits != 8) && (valueBits != 16) && (valueBits != 32))
error("BitStreamImpl: Invalid memory layout %d, %d, %d", valueBits, isLE, MSB2LSB);
error("BitStreamImpl: Invalid memory layout %d, %d, %d", valueBits, int(isLE), int(MSB2LSB));
_size = (_stream->size() & ~((uint32) ((valueBits >> 3) - 1))) * 8;
}
@ -154,7 +154,7 @@ public:
_stream(&stream), _disposeAfterUse(DisposeAfterUse::NO), _bitContainer(0), _bitsLeft(0), _pos(0) {
if ((valueBits != 8) && (valueBits != 16) && (valueBits != 32))
error("BitStreamImpl: Invalid memory layout %d, %d, %d", valueBits, isLE, MSB2LSB);
error("BitStreamImpl: Invalid memory layout %d, %d, %d", valueBits, int(isLE), int(MSB2LSB));
_size = (_stream->size() & ~((uint32) ((valueBits >> 3) - 1))) * 8;
}

View File

@ -132,7 +132,7 @@ public:
((uint32 *) _buffer)[pixel] = value;
return;
}
error("setPixelAt: Unhandled bytesPerPixel %i", _format.bytesPerPixel);
error("setPixelAt: Unhandled bytesPerPixel %d", int(_format.bytesPerPixel));
}
/**
* Set the value of a pixel. The pixel will be converted from a pixel in another PixelBuffer,
@ -208,7 +208,7 @@ public:
case 4:
return ((uint32 *) _buffer)[i];
}
error("getValueAt: Unhandled bytesPerPixel %i", _format.bytesPerPixel);
error("getValueAt: Unhandled bytesPerPixel %d", int(_format.bytesPerPixel));
}
/**
* Return the RGB value of the pixel at the given index.