Wrong hint when Currency is divided with an Integer
Original Reporter info from Mantis: kluug.net @onpok
-
Reporter name: Ondrej Pokorny
Original Reporter info from Mantis: kluug.net @onpok
- Reporter name: Ondrej Pokorny
Description:
"Hint: Use DIV instead to get an integer result" is shown by the compiler when you do
C := C / D;
for
C: Currency;
D: Integer;
Steps to reproduce:
program CurrencyTest;
{$mode objfpc}{$H+}
var
C: Currency;
D: Integer;
begin
C := 1234.56;
D := 2;
C := C / D; // Hint: Use DIV instead to get an integer result
Writeln(C);
end.
Mantis conversion info:
- Mantis ID: 38718
- OS: Raspberry Pi
- Platform: arm-linux
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 49154 (#09628e56)