mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 21:33:59 +02:00
- cleanup a bunch of vc++ compile / link warnings
This commit is contained in:
@@ -82,7 +82,7 @@ Pixmap2D* JPGReader::read(ifstream& is, const string& path, Pixmap2D* ret) const
|
||||
is.read((char*)buffer, (std::streamsize)length);
|
||||
static bool bigEndianSystem = Shared::PlatformByteOrder::isBigEndian();
|
||||
if(bigEndianSystem == true) {
|
||||
Shared::PlatformByteOrder::fromEndianTypeArray<uint8>(buffer,length);
|
||||
Shared::PlatformByteOrder::fromEndianTypeArray<uint8>(buffer,(size_t)length);
|
||||
}
|
||||
//Check buffer (weak jpeg check)
|
||||
//if (buffer[0] != 0x46 || buffer[1] != 0xA0) {
|
||||
|
Reference in New Issue
Block a user