From 61175dcbfcbfbf537dd9acde34a146d5a32aa1aa Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 12 Apr 2008 17:10:44 +0200 Subject: [PATCH] Fix mistake in EMX port. --- ChangeLog | 5 +++++ lib/freadptr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3a150155d..85a5c3782 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-12 Bruno Haible + + * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion. + Reported by Elbert Pol . + 2008-04-12 Eric Blake Work around Solaris 10 math.h bug. diff --git a/lib/freadptr.c b/lib/freadptr.c index 33471a021..bcfab5723 100644 --- a/lib/freadptr.c +++ b/lib/freadptr.c @@ -50,7 +50,7 @@ freadptr (FILE *fp, size_t *sizep) fp->_ungetc_count = 0 implies fp->_rcount >= 0. */ if (fp->_rcount <= 0) return NULL; - if (fp->_ungetc_count == 0) + if (!(fp->_ungetc_count == 0)) abort (); *sizep = fp->_rcount; return fp->_ptr; -- 2.11.0