aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-06-15 12:29:18 -0700
committerPaul Eggert2011-06-15 12:29:18 -0700
commit096a9774c8a8c8710f07e2fbab54e35efeb38050 (patch)
tree0b8d2b384434eb34a9e13c3ef69b7af93eade2ae /src
parenta2a0186171731765ee67d24a29fb80f54cd874f0 (diff)
downloademacs-096a9774c8a8c8710f07e2fbab54e35efeb38050.tar.gz
emacs-096a9774c8a8c8710f07e2fbab54e35efeb38050.zip
* fileio.c (emacs_lseek): Work around GCC bug 43772.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 2e0b3831e8d..fd5277cbd59 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3114,7 +3114,9 @@ read_non_regular_quit (Lisp_Object ignore)
3114static off_t 3114static off_t
3115emacs_lseek (int fd, EMACS_INT offset, int whence) 3115emacs_lseek (int fd, EMACS_INT offset, int whence)
3116{ 3116{
3117 if (! (TYPE_MINIMUM (off_t) <= offset && offset <= TYPE_MAXIMUM (off_t))) 3117 /* Use "&" rather than "&&" to suppress a bogus GCC warning; see
3118 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43772>. */
3119 if (! ((TYPE_MINIMUM (off_t) <= offset) & (offset <= TYPE_MAXIMUM (off_t))))
3118 { 3120 {
3119 errno = EINVAL; 3121 errno = EINVAL;
3120 return -1; 3122 return -1;