int32_t is a long int
hiperiondev opened this issue · comments
In static Value vm_intToStr(VM* vm, int32_t i):
size = MVM_SNPRINTF(buf, sizeof buf, "%d", i);
must be:
size = MVM_SNPRINTF(buf, sizeof buf, "%ld", i);
Ah yeah, thanks. Should be fixed now!
The correct way of doing this is with the PRId32 macro. On LP64 platforms, coercing to long is inefficient.
Ah yeah, good call. Thanks @davidchisnall!