]> Repositorios git - scryer-prolog.git/commitdiff
Restore the type_error, which was implemented correctly by @notoria.
authorMarkus Triska <[email protected]>
Sun, 19 Apr 2020 00:12:01 +0000 (02:12 +0200)
committerMarkus Triska <[email protected]>
Sun, 19 Apr 2020 00:15:59 +0000 (02:15 +0200)
This corrects f28e87b2401960e3b31bea114318e2b3ef1616d3:
in_character is a valid type by 7.12.2 Error classification!

src/prolog/lib/charsio.pl

index 4e3a4a22a464356750012a3c7a375922119bb794..717bbaaa3027bcba70a49ed2a5aa74fc8c5a250c 100644 (file)
@@ -60,7 +60,7 @@ extend_var_list_([V|Vs], N, VarList, NewVarList, VarType) :-
 get_single_char(C) :-
     (  var(C) -> '$get_single_char'(C)
     ;  atom_length(C, 1) -> '$get_single_char'(C)
-    ;  throw(error(domain_error(in_character, C), get_single_char/1))
+    ;  throw(error(type_error(in_character, C), get_single_char/1))
     ).