fix f64 indexing, introduce bespoke F64Table type (#3065)
This commit is contained in:
@@ -12,7 +12,7 @@ test :-
|
||||
ffi:'signum'(A, SA),
|
||||
ffi:'signum'(B, SB),
|
||||
write((SA, SB)),
|
||||
-1.0 is SA, % incorrect, based on https://www.swi-prolog.org/pldoc/man?function=max/2 -0.0 is less than 0.0 so A and B should be 0.0 for which signum should be 1
|
||||
1.0 is SA,
|
||||
1.0 is SB.
|
||||
|
||||
:- initialization(test).
|
||||
|
||||
Reference in New Issue
Block a user