DavidKinder / Git

Fast Glulx interpreter, originally written by Iain Merrick.
MIT License
46 stars 13 forks source link

Direct threading broken on 64-bit builds #9

Closed DavidKinder closed 3 years ago

DavidKinder commented 3 years ago

Direct threading, which uses GCC's label-as-value extension, does not work when git is compiled as a 64-bit application. This is because the label-as-value value, which is of type void*, cannot (in a 64-bit application) be converted to a git_uint32 without loosing some of the value, since the uin32 is 32 bits, but the pointer is 64 bits.

DavidKinder commented 3 years ago

Fixed by commit 9f0ae99c8bff2cbfe0c1314b93f2d05d74c45979