From 555ada99b67bf93e9ebb33f18a3b510f81e11ea3 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 17 Aug 2001 10:06:46 +0000 Subject: Don't clear "we have offset" flag even if long is overflow for fseek(), there is no harm to have it, it will reduce next call efforts. --- lib/libc/stdio/fseek.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/libc') diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index e0a1648..8dc36e6 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -304,7 +304,6 @@ dumb: return (EOF); /* POSIX require long type resulting offset for fseek() */ if (ltest && fp->_offset != (long)fp->_offset) { - fp->_flags &= ~__SOFF; errno = EOVERFLOW; return (EOF); } -- cgit v1.1