From 034a3909ae2275e2a74ae8f33eb19673b18cdae8 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 6 Jan 2005 20:10:56 +0000 Subject: 2005-01-06 Hans-Peter Nilsson * libc/stdio/ftell.c (ftell_r): Add parenthesis for __SWR bit-test in combination with NULL test. --- newlib/libc/stdio/ftell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc') 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 -- cgit v1.2.3