Skip to content

v2.2.1

Latest
Compare
Choose a tag to compare
@dargueta dargueta released this 10 May 13:34
· 3 commits to master since this release
6dcf292

Bugfixes

Integer Sizes

Integer widths for the Unicorn 2.x control functions were broken on Lua 5.1 and 5.2 on certain combinations of architecture and OS. Depending on these factors, return values from the control could result in integer overflows or truncation where there didn't need to be. This has now been fixed.

The only place it will not work is for Lua 5.1 or 5.2 where lua_Integer was manually changed from ptrdiff_t to a narrower type when Lua itself was being compiled. It's likely that such a change would fundamentally break Lua, so that's a risk I'm willing to take.

Others

Fixed #40 where compilation broke on GCC 12+.

Miscellaneous Changes

  • Minor code cleanup, removed unused imports.
  • (Development) Code formatting target has been renamed from autoformat to format.
  • (Development) Switch to cross-platform fallthrough and noreturn directives that will "just work" when MSVC support is added.