projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
833333f
)
Fix mistake in EMX port.
author
Bruno Haible
<bruno@clisp.org>
Sat, 12 Apr 2008 15:10:44 +0000
(17:10 +0200)
committer
Bruno Haible
<bruno@clisp.org>
Sat, 12 Apr 2008 15:10:44 +0000
(17:10 +0200)
ChangeLog
patch
|
blob
|
history
lib/freadptr.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index 3a150155d8eafbddcdb3331864b5f94658d414fc..85a5c37823f6db309996f3062baf22331dc8d2ce 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.
diff --git
a/lib/freadptr.c
b/lib/freadptr.c
index 33471a021f3620f52f4b249fe80c179136d64f5c..bcfab57231f9b1ba4f7f7b66f094c5031d8fa732 100644
(file)
--- 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;