Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include SIZE_T is unsigned so SIZE_T_MAX needs ...



details:   https://anonhg.NetBSD.org/src/rev/f13d5b57fd26
branches:  trunk
changeset: 793162:f13d5b57fd26
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Jan 29 00:32:04 2014 +0000

description:
SIZE_T is unsigned so SIZE_T_MAX needs to be ULONG_MAX

diffstat:

 sys/arch/arm/include/limits.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r faf11082a6cd -r f13d5b57fd26 sys/arch/arm/include/limits.h
--- a/sys/arch/arm/include/limits.h     Wed Jan 29 00:22:09 2014 +0000
+++ b/sys/arch/arm/include/limits.h     Wed Jan 29 00:32:04 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.13 2013/04/11 00:57:34 christos Exp $     */
+/*     $NetBSD: limits.h,v 1.14 2014/01/29 00:32:04 matt Exp $ */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -67,7 +67,7 @@
 
 #if defined(_NETBSD_SOURCE)
 #define        SSIZE_MIN       LONG_MIN        /* min value for a ssize_t */
-#define        SIZE_T_MAX      LONG_MAX        /* max value for a size_t */
+#define        SIZE_T_MAX      ULONG_MAX       /* max value for a size_t */
 
 #define        UQUAD_MAX       0xffffffffffffffffULL           /* max unsigned quad */
 #define        QUAD_MAX        0x7fffffffffffffffLL            /* max signed quad */



Home | Main Index | Thread Index | Old Index