View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002063 | JEDI VCL | 00 JVCL Components | public | 2004-08-17 03:52 | 2004-08-17 13:25 |
Reporter | kph | Assigned To | user72 | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0002063: JVInterpreter: Integer Division parsed as Floating Point division (Bugfix included) | ||||
Description | Integer 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 Information | Bugfix: in JVInterpreterParser search for this line: (Token: kwDIV; TTyp: ttDiv), and change it to (Token: kwDIV; TTyp: ttIntDiv), | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2004-08-17 03:52 | kph | New Issue | |
2004-08-17 13:25 |
|
Status | new => resolved |
2004-08-17 13:25 |
|
Resolution | open => fixed |
2004-08-17 13:25 |
|
Assigned To | => user72 |
2004-08-17 13:25 |
|
Note Added: 0005011 |