View Issue Details

IDProjectCategoryView StatusLast Update
0038718FPCCompilerpublic2021-04-09 22:39
ReporterOndrej Pokorny Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformarm-linuxOSRaspberry Pi 
Product Version3.3.1 
Fixed in Version3.3.1 
Summary0038718: Wrong hint when Currency is divided with an Integer
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 Reproduceprogram 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.
TagsNo tags attached.
Fixed in Revision49154
FPCOldBugId
FPCTarget-
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-04-07 18:36 Ondrej Pokorny New Issue
2021-04-09 22:39 Florian Assigned To => Florian
2021-04-09 22:39 Florian Status new => resolved
2021-04-09 22:39 Florian Resolution open => fixed
2021-04-09 22:39 Florian Fixed in Version => 3.3.1
2021-04-09 22:39 Florian Fixed in Revision => 49154
2021-04-09 22:39 Florian FPCTarget => -