diff options
| author | christos <christos@NetBSD.org> | 2010-10-22 22:00:32 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2010-10-22 22:00:32 +0000 |
| commit | 13fa4dc134f0efa57828650ca8e66ff2c226a035 (patch) | |
| tree | 4349936e39c497ad8310312e657afda35304ffb2 /lib/libc/stdio/local.h | |
| parent | ec053f73a0ce37daf4abd8973bdf72644ee53da3 (diff) | |
not that it can happen, but make the test more robust.
Diffstat (limited to 'lib/libc/stdio/local.h')
| -rw-r--r-- | lib/libc/stdio/local.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index b2cbf0e6e50..8761d208891 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -1,4 +1,4 @@ -/* $NetBSD: local.h,v 1.26 2010/10/22 21:29:45 christos Exp $ */ +/* $NetBSD: local.h,v 1.27 2010/10/22 22:00:32 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -117,5 +117,5 @@ extern void __funlockfile_internal __P((FILE *, int)); /* * Detect if the current file position fits in a long int. */ -#define _FPOS_OVERFLOW(pos) (sizeof(fpos_t) != sizeof(long) && \ +#define _FPOS_OVERFLOW(pos) (sizeof(fpos_t) > sizeof(long) && \ ((pos) & (~0ULL << ((sizeof(fpos_t) - sizeof(long)) * NBBY))) != 0) |
