sonar-openedge icon indicating copy to clipboard operation
sonar-openedge copied to clipboard

"Conversion could overflow variable" rule does not catch INTEGER(RecId).

Open movedoa opened this issue 4 years ago • 0 comments

Since RECID is INT64, this can cause overflow errors and currently is not caught by the rule.

DEFINE VARIABLE lcRecId AS RECID NO-UNDO.
DEFINE VARIABLE liInt AS INTEGER NO-UNDO.
liInt = INTEGER(lcRecId).

movedoa avatar Nov 22 '21 11:11 movedoa