Subject: | BYTE4 defined as unsigned long breaks on 64 bit platforms |
In libmegahal.c, on line 154 in 0.07 (146 in 0.06) there is:
#define BYTE4 unsigned long
However, unsigned long is 8 bytes on many 64 bit platforms, so loading
a brain generated on a 32 bit platform will not work. However, the fix
is easy, just changing it to:
#define BYTE4 unsigned int
That might break on older platforms, where int is 16 bit, not sure how
common those are these days though.