1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 11:00:45 -08:00

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

This commit is contained in:
Paul Eggert 2011-06-15 12:29:18 -07:00
parent a2a0186171
commit 096a9774c8

View file

@ -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;