diff --git a/changes-5.1.html b/changes-5.1.html
index c3faea8c2..9be04ed13 100644
--- a/changes-5.1.html
+++ b/changes-5.1.html
@@ -16,6 +16,7 @@
Yap-5.1.0:
+- FIXED: more compilation problems if GMP not there (Remko Troncon).
- FIXED: make syntax error report the line where the bug was (Jude Shavlik).
- FIXED: ok, MkBigInt shouldn't free the bigint.
- FIXED: MkBigInt already frees bigint.
diff --git a/pl/errors.yap b/pl/errors.yap
index 2ad0b6750..03edea294 100644
--- a/pl/errors.yap
+++ b/pl/errors.yap
@@ -11,8 +11,12 @@
* File: errors.yap *
* comments: error messages for YAP *
* *
-* Last rev: $Date: 2006-01-20 04:35:28 $,$Author: vsc $ *
+* Last rev: $Date: 2006-01-26 19:20:00 $,$Author: vsc $ *
* $Log: not supported by cvs2svn $
+* Revision 1.73 2006/01/20 04:35:28 vsc
+*
+* fix error message
+*
* Revision 1.72 2005/11/23 13:24:00 vsc
* cleanups in OS interface predicates.
*
@@ -847,8 +851,9 @@ print_message(Level, Mss) :-
[Where]).
-'$dump_syntax_error_line'(_,Position) :-
- format(user_error,', near line ~d:~n',[Position]).
+'$dump_syntax_error_line'(Start,Position) :-
+ Pos is Start+Position,
+ format(user_error,', near line ~d:~n',[Pos]).
'$dump_syntax_error_term'(0,J,L) :- !,
format(user_error,'~n', []),