Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio not that it can happen, but make the test mor...



details:   https://anonhg.NetBSD.org/src/rev/5184d55a96c4
branches:  trunk
changeset: 758154:5184d55a96c4
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 22 22:00:32 2010 +0000

description:
not that it can happen, but make the test more robust.

diffstat:

 lib/libc/stdio/local.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r 59117567984d -r 5184d55a96c4 lib/libc/stdio/local.h
--- a/lib/libc/stdio/local.h    Fri Oct 22 21:29:45 2010 +0000
+++ b/lib/libc/stdio/local.h    Fri Oct 22 22:00:32 2010 +0000
@@ -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 @@
 /*
  * 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)



Home | Main Index | Thread Index | Old Index