Module Name:    src
Committed By:   christos
Date:           Fri Oct 22 22:00:32 UTC 2010

Modified Files:
        src/lib/libc/stdio: local.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libc/stdio/local.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdio/local.h
diff -u src/lib/libc/stdio/local.h:1.26 src/lib/libc/stdio/local.h:1.27
--- src/lib/libc/stdio/local.h:1.26	Fri Oct 22 17:29:45 2010
+++ src/lib/libc/stdio/local.h	Fri Oct 22 18:00:32 2010
@@ -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)

Reply via email to