Le 29 Jul 2000, à 22:12, Couperin a écrit:
I get false results when I use comparison operators with Packed subrange types.
Another try with a slight difference in the program (with no packed type):
Type T_XValue = 0..125; Var X : T_XValue;
It's OK with X = 64 but now :
X ? 4000000000 X = 4000000000 X > 63 : False X < 63 : True X = 63 : False X >= 63 : False X <= 63 : True X <> 63 : True Real(X) > 63 : True Real(X) < 63 : False Real(X) = 63 : False Real(X) >= 63 : True Real(X) <= 63 : False Real(X) <> 63 : True X > Real(63) : True X < Real(63) : False X = Real(63) : False X >= Real(63) : True X <= Real(63) : False X <> Real(63) : True Integer(X) > 63 : False X > Integer(63) : False
with gpc version 20000727, based on 2.95.2 19991024 (release)
-- "Couperin"
-- "Couperin"