dhewm3/neo
Daniel Gibson 3ad384a0da Fix script interpreter on 64bit Big Endian platforms
idInterpreter::Push() is used only for int and (reinterpreted) float
values, not pointers (as far as I can tell), so 32bit values on all
relevant platforms.
It stored its value as intptr_t at `&localstack[ localstackUsed ]` - on
64bit platforms intptr_t is 64bit.
Unfortunately, all code reading from the stack just get got a pointer
to `&localstack[ localstackUsed ]` in the type they want to read
(like `int*` or `float*`) and read that. On Little Endian that happens
to work, on 64bit Big Endian it reads the wrong 4 bytes of the intptr_t,
so it doesn't work.

fixes #625, #472
2024-10-31 03:18:33 +01:00
..
cm Fix/work around other misc. compiler warnings 2023-01-05 09:06:34 +01:00
d3xp Fix script interpreter on 64bit Big Endian platforms 2024-10-31 03:18:33 +01:00
framework Merge branch 'SDL3' 2024-10-29 03:26:57 +01:00
game Fix script interpreter on 64bit Big Endian platforms 2024-10-31 03:18:33 +01:00
idlib Detect endianess in CMakeLists.txt, get rid of most SDL_endian.h uses 2024-10-07 03:15:50 +02:00
libs/imgui Fix Dear ImGui colors on Big Endian systems 2024-10-31 03:18:33 +01:00
MayaImport s/LittleLong/LittleInt/ to match the return type 2012-06-28 13:02:47 +02:00
renderer SDL3: Handle r_fillWindowAlphaChan, cleanups and comments 2024-10-29 03:26:20 +01:00
sound Detect endianess in CMakeLists.txt, get rid of most SDL_endian.h uses 2024-10-07 03:15:50 +02:00
sys ImGui: Use base85-compressed font 2024-10-31 03:18:13 +01:00
tools Introduce and use sys_sdl.h to unify <SDL3/SDL.h> and <SDL.h> includes 2024-10-07 17:38:01 +02:00
TypeInfo Get rid of Sys_FPU_StackIsEmpty() 2012-07-06 01:06:53 +02:00
ui HighDPI support, hopefully 2024-06-03 14:49:23 +02:00
CMakeLists.txt SDL3: Now works on Windows as well 2024-10-09 17:37:08 +02:00
config.h.in Introduce CMAKE_INSTALL_PREFIX relative paths 2012-07-04 02:18:42 +02:00
mmakefile.src # move the AROS specific folder icon and default.cfg mmakefile.src under neo/sys/aros/setup 2017-04-22 16:21:14 +02:00