summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2010-10-22 22:00:32 +0000
committerchristos <christos@NetBSD.org>2010-10-22 22:00:32 +0000
commit13fa4dc134f0efa57828650ca8e66ff2c226a035 (patch)
tree4349936e39c497ad8310312e657afda35304ffb2 /lib/libc
parentec053f73a0ce37daf4abd8973bdf72644ee53da3 (diff)
not that it can happen, but make the test more robust.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/local.h4
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)