]> Repositorios git - scryer-prolog.git/commitdiff
Fix querying the values of the bounded and max_arity flags
authorPaulo Moura <[email protected]>
Mon, 7 Mar 2022 00:30:35 +0000 (00:30 +0000)
committerPaulo Moura <[email protected]>
Mon, 7 Mar 2022 00:30:35 +0000 (00:30 +0000)
src/lib/builtins.pl

index 7dce699ac8ecd1285e6da7e29871cbd1558cd377..75bda0533e65fcb78338fc90f644a802119d25f4 100644 (file)
@@ -119,9 +119,9 @@ Module : Predicate :-
 
 % flags.
 
-current_prolog_flag(Flag, Value) :- Flag == max_arity, !, Value == 1023.
+current_prolog_flag(Flag, Value) :- Flag == max_arity, !, Value = 1023.
 current_prolog_flag(max_arity, 1023).
-current_prolog_flag(Flag, Value) :- Flag == bounded, !, Value == false.
+current_prolog_flag(Flag, Value) :- Flag == bounded, !, Value = false.
 current_prolog_flag(bounded, false).
 current_prolog_flag(Flag, Value) :- Flag == integer_rounding_function, !, Value == toward_zero.
 current_prolog_flag(integer_rounding_function, toward_zero).