mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
JANITORIAL: Fix some MSVC warnings
This commit is contained in:
parent
3cb4e0a3a7
commit
dd792e9e87
@ -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;
|
||||
}
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user