ref: 995a4f7a7968f5399de1459a6534cca7cc3e44a5
parent: 063bfbc71caa91742d7f25162cc87a2e2d13ae0c
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Feb 20 14:55:45 EST 2019
Work around a portability issue for now We'll maybe need a new compiler flag or something. I don't like leaving something like this enabled by default.
--- a/src/Back.cpp
+++ b/src/Back.cpp
@@ -46,8 +46,10 @@
// 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];
+// short bmp_header_buffer[7];
+// long bmp_header_buffer2[10];
+ int16_t bmp_header_buffer[7];
+ int32_t bmp_header_buffer2[10]; // We'll need a better solution when we stop using stdint.h
fread(bmp_header_buffer, 14, 1, fp);