Suppose you have code like this:
Result.X := ACustomMemo.Perform(EM_LINEFROMCHAR, -1, 0);
The Windows API claims "-1" is a valid value that makes it it return the active line.
However, Delphi has this defined as NaiveUInt and complains if I try to pass -1.
What is the cleanest solution to this? Casting?