View Issue Details

IDProjectCategoryView StatusLast Update
0002063JEDI VCL00 JVCL Componentspublic2004-08-17 13:25
ReporterkphAssigned Touser72 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0002063: JVInterpreter: Integer Division parsed as Floating Point division (Bugfix included)
DescriptionInteger divisions with the div-keyword lead to wrong results.
Try showmessage(inttostr(9 div 5));
It shows 2, but this should be 1.
The Interpreter executes a Floating Point Division. If you type
showmessage(9 div 5);
you get a floating point value. It should be an integer value.

The reason is the parser giving the wrong token for the div-keyword. See Bugfix in additional information.

Additional InformationBugfix:

in JVInterpreterParser search for this line:
    (Token: kwDIV; TTyp: ttDiv),
and change it to
    (Token: kwDIV; TTyp: ttIntDiv),
TagsNo tags attached.

Activities

user72

2004-08-17 13:25

  ~0005011

Thanks, updated in CVS

Issue History

Date Modified Username Field Change
2004-08-17 03:52 kph New Issue
2004-08-17 13:25 user72 Status new => resolved
2004-08-17 13:25 user72 Resolution open => fixed
2004-08-17 13:25 user72 Assigned To => user72
2004-08-17 13:25 user72 Note Added: 0005011