mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 13:22:26 +00:00
without prototype, return type of ecvt was int, which has 4 byte size on x86 but still has the same size on x86_64, that's why pointer which is 8 byte long could not fit in the variable holding return value. And it could get negative value causing programs to explode. Fixed with casting the result to LONGINT.
1.2 MiB
Executable file
1.2 MiB
Executable file