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 Make sure that the UQUAD_MAX constant i...



details:   https://anonhg.NetBSD.org/src/rev/71138281f058
branches:  trunk
changeset: 778321:71138281f058
user:      he <he%NetBSD.org@localhost>
date:      Thu Mar 22 08:39:43 2012 +0000

description:
Make sure that the UQUAD_MAX constant is marked as unsigned, to avoid
"ANSI C treats constant as unsigned" warning from lint.

diffstat:

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

diffs (18 lines):

diff -r f76671f4cc4f -r 71138281f058 sys/arch/arm/include/limits.h
--- a/sys/arch/arm/include/limits.h     Thu Mar 22 07:58:16 2012 +0000
+++ b/sys/arch/arm/include/limits.h     Thu Mar 22 08:39:43 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: limits.h,v 1.10 2010/06/07 13:52:30 tnozaki Exp $      */
+/*     $NetBSD: limits.h,v 1.11 2012/03/22 08:39:43 he Exp $   */
 
 /*
  * Copyright (c) 1988 The Regents of the University of California.
@@ -71,7 +71,7 @@
 #if defined(_NETBSD_SOURCE)
 #define        SIZE_T_MAX      LONG_MAX        /* max value for a size_t */
 
-#define        UQUAD_MAX       0xffffffffffffffffLL            /* max unsigned quad */
+#define        UQUAD_MAX       0xffffffffffffffffULL           /* max unsigned quad */
 #define        QUAD_MAX        0x7fffffffffffffffLL            /* max signed quad */
 #define        QUAD_MIN        (-0x7fffffffffffffffLL-1)       /* min signed quad */
 



Home | Main Index | Thread Index | Old Index