Hi,
I get the above message with this code:
Move(s[1],rec[0],IfThen(l > recsize,recsize,l));
At first glance, a generic doesn't seem involved. Looking deeper, I found this interesting new section in Sysutils:
{$IFNDEF VER3_0}
generic function IfThen<T>(val:boolean;const iftrue:T; const iffalse:T) :T; inline; overload;
{$ENDIF}
Okay, I found a fix quite quickly, "uses math" and write
Move(s[1],rec[0],Math.IfThen(l > recsize,recsize,l));
and everything works like before. I do, however, wonder what that Generic in Sysutils is intended to be used for.
FPC 3.2.2/Lazarus 2.2.0RC1
Best regards, Armin.