Commit 096a9774 authored by Paul Eggert's avatar Paul Eggert
Browse files

* fileio.c (emacs_lseek): Work around GCC bug 43772.

parent a2a01861
......@@ -3114,7 +3114,9 @@ read_non_regular_quit (Lisp_Object ignore)
static off_t
emacs_lseek (int fd, EMACS_INT offset, int whence)
{
if (! (TYPE_MINIMUM (off_t) <= offset && offset <= TYPE_MAXIMUM (off_t)))
/* Use "&" rather than "&&" to suppress a bogus GCC warning; see
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43772>. */
if (! ((TYPE_MINIMUM (off_t) <= offset) & (offset <= TYPE_MAXIMUM (off_t))))
{
errno = EINVAL;
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment