summaryrefslogtreecommitdiff
path: root/src/libvorbis-1.3.4/lib/books/uncoupled/res_books_uncoupled.h
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-03-23 20:16:11 -0500
committerTim Angus <tim@ngus.net>2015-06-07 12:03:36 +0100
commitc3456c9e5eca93fbdcce6494aa9759c481e6a1ea (patch)
tree51678310dc6ac475adf2e6246a369786a026f133 /src/libvorbis-1.3.4/lib/books/uncoupled/res_books_uncoupled.h
parenta6507173e482bf939fec0cb766c2fa4ae2df0ba5 (diff)
Fix return values in nested system calls from QVMs
When the engine is compiled with Clang it appears that the return value is being written to the WRONG address, either due to the vm_ variables being changed (unexpectedly) elsewhere, or as a result of bad assembly assumptions; having a stack variable pointing to where to write the return value seems to do the trick. This fixes the case where, for a trap_Register()-like call, weird numbers are being returned when, during the process, an error message is printed (which in Tremulous results in a QVM call and (nested) system call).
Diffstat (limited to 'src/libvorbis-1.3.4/lib/books/uncoupled/res_books_uncoupled.h')
0 files changed, 0 insertions, 0 deletions