summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdio/ftell.c
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2005-01-06 20:10:56 +0000
committerJeff Johnston <jjohnstn@redhat.com>2005-01-06 20:10:56 +0000
commit034a3909ae2275e2a74ae8f33eb19673b18cdae8 (patch)
treef10e5ebc0761609081cb44844b21fe2292b720d2 /newlib/libc/stdio/ftell.c
parent5cc3f59253fabe4f402a69ea007f6c7d2a6187f4 (diff)
downloadcygnal-034a3909ae2275e2a74ae8f33eb19673b18cdae8.tar.gz
cygnal-034a3909ae2275e2a74ae8f33eb19673b18cdae8.tar.bz2
cygnal-034a3909ae2275e2a74ae8f33eb19673b18cdae8.zip
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.
Diffstat (limited to 'newlib/libc/stdio/ftell.c')
-rw-r--r--newlib/libc/stdio/ftell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/ftell.c b/newlib/libc/stdio/ftell.c
index 952574159..b273c8bc9 100644
--- a/newlib/libc/stdio/ftell.c
+++ b/newlib/libc/stdio/ftell.c
@@ -143,7 +143,7 @@ _DEFUN(_ftell_r, (ptr, fp),
if (HASUB (fp))
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