View Issue Details

IDProjectCategoryView StatusLast Update
0033582FPCCompilerpublic2019-12-25 23:11
ReporterFiliuta Vitali Assigned ToFlorian  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformpowerpcOSdarwin 
Product Version3.1.1 
Fixed in Version3.3.1 
Summary0033582: Currency multiply under powerpc and compiled with RELEASE def gives invalid result.
Descriptionprogram:

program app_test_core;
var
  F: Currency;
begin
  F := 32768;
  F := F * 65536;
  writeln(F, ', ', Round(F));
  F := -32768;
  F := F * 65536;
  writeln(F, ', ', Round(F));
end.

result for DEBUG (correct):

 2.147483648000000000E+09, 2147483648
-2.147483648000000000E+09, -2147483648

result for RELEASE (incorrect):

 0.000000000000000000E+00, 0
-4.294967296000000000E+05, -429497
TagsNo tags attached.
Fixed in Revision43795
FPCOldBugId
FPCTarget-
Attached Files

Activities

Filiuta Vitali

2018-04-08 00:19

reporter   ~0107679

Could be relative to 33439 issue (r38555)

Issue History

Date Modified Username Field Change
2018-04-08 00:18 Filiuta Vitali New Issue
2018-04-08 00:19 Filiuta Vitali Note Added: 0107679
2019-12-25 23:11 Florian Assigned To => Florian
2019-12-25 23:11 Florian Status new => resolved
2019-12-25 23:11 Florian Resolution open => fixed
2019-12-25 23:11 Florian Fixed in Version => 3.3.1
2019-12-25 23:11 Florian Fixed in Revision => 43795
2019-12-25 23:11 Florian FPCTarget => -