[fpc-devel] Attn. Florian, r39759

Bart bartjunk64 at gmail.com
Mon Sep 17 22:56:20 CEST 2018


Hi,

> optimize (v>=x) and (v<=y) into (v-x)<(y-x)
If the commit does what this says, it is incorrect for the case that x=v=y:
(v>=x)=true, (v<=x)=true, (v-x)<(y-x) translates to (0<0) wich is false.

See https://bugs.freepascal.org/view.php?id=34292

-- 
Bart



More information about the fpc-devel mailing list