global_dos_alloc rounds wrong
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
In go32.pp the function global_dos_alloc does not
work correctly when rounding up the number
of bytes to allocate, e. g.: If you try to
allocate 255 bytes, global_dos_alloc will
only allocate 240 bytes because of the wrong
rounding. Correct would be to replace the orl
instruction by an add with 15.
Additional information:
Reporter: Martin Glaser
EMail: mglaser at dillingen dot baynet dot de
Mantis conversion info:
- Mantis ID: 2363
- OS: All
- Version: ?
- Fixed in version: 0.99.11