diff options
| author | Paul Eggert | 2011-06-15 12:29:18 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-06-15 12:29:18 -0700 |
| commit | 096a9774c8a8c8710f07e2fbab54e35efeb38050 (patch) | |
| tree | 0b8d2b384434eb34a9e13c3ef69b7af93eade2ae /src | |
| parent | a2a0186171731765ee67d24a29fb80f54cd874f0 (diff) | |
| download | emacs-096a9774c8a8c8710f07e2fbab54e35efeb38050.tar.gz emacs-096a9774c8a8c8710f07e2fbab54e35efeb38050.zip | |
* fileio.c (emacs_lseek): Work around GCC bug 43772.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 4 |
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) | |||
| 3114 | static off_t | 3114 | static off_t |
| 3115 | emacs_lseek (int fd, EMACS_INT offset, int whence) | 3115 | emacs_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; |