fix UB in ffi tests
This commit is contained in:
committed by
Bennet Bleßmann
parent
e1246f0c83
commit
760e1d2aac
@@ -2,7 +2,9 @@
|
||||
:- use_module(library(ffi)).
|
||||
|
||||
test :-
|
||||
getenv("ffi_f64_nan_LIB", LIB),
|
||||
read(Body),
|
||||
term_variables(Body, [LIB]),
|
||||
Body,
|
||||
use_foreign_module(LIB, ['ffi_f64_nan'([], f64)]),
|
||||
ffi:'ffi_f64_nan'(N),
|
||||
_ is round(N).
|
||||
|
||||
Reference in New Issue
Block a user