From 08de04bad7a7c9ac41efc71c76e294ace7fe9e0c Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 7 May 2019 16:35:41 +0100 Subject: [PATCH] Some accuracy-related things for Back.cpp --- src/Back.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Back.cpp b/src/Back.cpp index 51b715fa..b388fe30 100644 --- a/src/Back.cpp +++ b/src/Back.cpp @@ -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);