Some accuracy-related things for Back.cpp

This commit is contained in:
Clownacy 2019-05-07 16:35:41 +01:00
parent f8d4ae7014
commit 08de04bad7

View file

@ -38,8 +38,8 @@ BOOL InitBack(const char *fName, int type)
// This is ridiculously platform-dependant:
// It should break on big-endian CPUs, and platforms
// where short isn't 16-bit and long isn't 32-bit.
short bmp_header_buffer[7];
long bmp_header_buffer2[10];
unsigned short bmp_header_buffer[7]; // These names aren't the original. This ruins the stack frame layout.
unsigned long bmp_header_buffer2[10];
fread(bmp_header_buffer, 14, 1, fp);