changeset 9899:1e9793d6008a

Fix mistake in EMX port.
author Bruno Haible <bruno@clisp.org>
date Sat, 12 Apr 2008 17:10:44 +0200
parents 02bfc9acab82
children 5f47b9c9cc45
files ChangeLog lib/freadptr.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Apr 12 07:22:40 2008 -0600
+++ b/ChangeLog	Sat Apr 12 17:10:44 2008 +0200
@@ -1,3 +1,8 @@
+2008-04-12  Bruno Haible  <bruno@clisp.org>
+
+	* lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
+	Reported by Elbert Pol <e.pol@chello.nl>.
+
 2008-04-12  Eric Blake  <ebb9@byu.net>
 
 	Work around Solaris 10 math.h bug.
--- a/lib/freadptr.c	Sat Apr 12 07:22:40 2008 -0600
+++ b/lib/freadptr.c	Sat Apr 12 17:10:44 2008 +0200
@@ -50,7 +50,7 @@
            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;