Fixed bug in `lL_event()` for LUA_TNUMBER type size mismatches; src/textadept.c The type extracted for LUA_TNUMBER was `sptr_t` (long), however most of the time, `int` is used. Since `sizeof(long) > sizeof(int)`, `lL_event()` sometimes pushed extra bytes in memory around the original integer passed (at least I think this explains the behavior I observed).
Fixed bug in `lL_event()` for LUA_TNUMBER type size mismatches; src/textadept.c
The type extracted for LUA_TNUMBER was `sptr_t` (long), however most of the
time, `int` is used. Since `sizeof(long) > sizeof(int)`, `lL_event()` sometimes
pushed extra bytes in memory around the original integer passed (at least I
think this explains the behavior I observed).

jozadaquebatista/textadept,jozadaquebatista/textadept