View Issue Details

IDProjectCategoryView StatusLast Update
0037878FPCCompilerpublic2020-10-19 21:10
Reporternanobit Assigned ToJonas Maebe  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformwin32OSWindows 
Product Version3.2.0 
Fixed in Version3.3.1 
Summary0037878: win32: int-overflow with int64(w)
Description{$mode delphi} or {$mode objfpc}

var i64: int64; w: word;

{$Q+}
i64 := 8191; w := 4096;
i64 := i64 - 2*w; // ok
assert(i64=-1);

i64 := 8191;
i64 := i64 - 2*longint(w); // ok
assert(i64=-1);

i64 := 8191;
i64 := i64 - 2*int64(w); // EIntOverflow (RTE 215), should not occur
assert(i64=-1);
TagsNo tags attached.
Fixed in Revision47142
FPCOldBugId
FPCTarget-
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2020-10-06 21:25 nanobit New Issue
2020-10-19 21:10 Jonas Maebe Assigned To => Jonas Maebe
2020-10-19 21:10 Jonas Maebe Status new => resolved
2020-10-19 21:10 Jonas Maebe Resolution open => fixed
2020-10-19 21:10 Jonas Maebe Fixed in Version => 3.3.1
2020-10-19 21:10 Jonas Maebe Fixed in Revision => 47142
2020-10-19 21:10 Jonas Maebe FPCTarget => -