[Lazarus] Laz commit for SpinEdit overflow fix
Bart
bartjunk64 at gmail.com
Fri Dec 8 21:54:25 CET 2017
On Fri, Dec 8, 2017 at 10:57 AM, Alexey via Lazarus <
lazarus at lists.lazarus-ide.org> wrote:
> - FIncrement := AIncrement;
> + if AIncrement > 0 then
> + FIncrement := AIncrement
> + else
> + FIncrement := -AIncrement;
>
> better: FIncrement := Abs(AIncrement);
>
I believe you are referring to T(Float)SpinEditEx?
This code is in the generic part, and Abs(AIncrement) does not compile
there, at least not with 3.0.4RC1.
Therefore this workaround.
Bart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20171208/34e6488a/attachment.html>
More information about the Lazarus
mailing list