[Patch / Test] Fixes to tests/test/cg/tmoddiv4.pp
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
This patch serves to fix range errors and test values in tmoddiv4.pp, which is meant to test div and mod operations with QWords, but because some of the constants are larger than $7FFFFFFFFFFFFFFF, they were being converted into (signed) Int64 operations instead and returning run-time errors when compiled with -Cr.
Additionally, some incorrect expected answers (at least as far as unsigned division is concerned) have been corrected.
Steps to reproduce:
Apply patch and confirm test correctness.
Additional information:
The error output is also a bit more helpful now in regards to the actual calculation performed.
Mantis conversion info:
- Mantis ID: 35180
- OS: Microsoft Windows
- OS Build: 10 Professional
- Build: r41558
- Platform: x86_64-win64
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 41589 (#a7d45c0c)
- Target version: 3.3.1