mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 12:05:47 +08:00
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
* libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR bit-test in combination with NULL test.
This commit is contained in:
parent
5cc3f59253
commit
034a3909ae
@ -1,3 +1,8 @@
|
|||||||
|
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR
|
||||||
|
bit-test in combination with NULL test.
|
||||||
|
|
||||||
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
|
2005-01-06 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
* README: Fix typo of LGPL. Change "license" to "copyright".
|
* README: Fix typo of LGPL. Change "license" to "copyright".
|
||||||
|
@ -143,7 +143,7 @@ _DEFUN(_ftell_r, (ptr, fp),
|
|||||||
if (HASUB (fp))
|
if (HASUB (fp))
|
||||||
pos -= fp->_ur;
|
pos -= fp->_ur;
|
||||||
}
|
}
|
||||||
else if (fp->_flags & __SWR && fp->_p != NULL)
|
else if ((fp->_flags & __SWR) && fp->_p != NULL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Writing. Any buffered characters cause the
|
* Writing. Any buffered characters cause the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user