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:
parent
a2a0186171
commit
096a9774c8
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue