ref: 08de04bad7a7c9ac41efc71c76e294ace7fe9e0c
parent: f8d4ae7014f18105de8ebe54667c2c1f15505df5
author: Clownacy <[email protected]>
date: Tue May 7 12:35:41 EDT 2019
Some accuracy-related things for Back.cpp
--- a/src/Back.cpp
+++ b/src/Back.cpp
@@ -38,8 +38,8 @@
// 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);