The basic integer type in 16-bit Turbo Pascal is 16-bit while from 32-bit Delphi, it is 32-bit. The basic integer types for modern Delphi compilers are: byte, ShortInt, Word, …
I have posted a question on stackoverflow.com and it got answered within a few minutes. Then I realized how stupid this bug was. I have a Delphi project that was …