Fix mistake in EMX port.
authorBruno Haible <bruno@clisp.org>
Sat, 12 Apr 2008 15:10:44 +0000 (17:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 12 Apr 2008 15:10:44 +0000 (17:10 +0200)
ChangeLog
lib/freadptr.c

index 3a15015..85a5c37 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 33471a0..bcfab57 100644 (file)
@@ -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;