Source-Changes-HG archive

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

[src/trunk]: src/tests/include/sys Use SCHAR_{MIN, MAX} for signed char, not C...



details:   https://anonhg.NetBSD.org/src/rev/fea9923244df
branches:  trunk
changeset: 778382:fea9923244df
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Mar 23 23:12:28 2012 +0000

description:
Use SCHAR_{MIN,MAX} for signed char, not CHAR_* since not char are signed.

diffstat:

 tests/include/sys/t_cdefs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3d17e1601b80 -r fea9923244df tests/include/sys/t_cdefs.c
--- a/tests/include/sys/t_cdefs.c       Fri Mar 23 23:08:00 2012 +0000
+++ b/tests/include/sys/t_cdefs.c       Fri Mar 23 23:12:28 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cdefs.c,v 1.1 2012/03/18 15:31:00 christos Exp $ */
+/* $NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $ */
 
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2008\
  The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_cdefs.c,v 1.1 2012/03/18 15:31:00 christos Exp $");
+__RCSID("$NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $");
 
 #include <atf-c.h>
 #include <sys/types.h>
@@ -44,7 +44,7 @@
        intmax_t min;
        intmax_t max;
 } s[] = {
-       { "signed char", CHAR_MIN, CHAR_MAX },
+       { "signed char", SCHAR_MIN, SCHAR_MAX },
        { "signed short", SHRT_MIN, SHRT_MAX },
        { "signed int", INT_MIN, INT_MAX },
        { "signed long", LONG_MIN, LONG_MAX },



Home | Main Index | Thread Index | Old Index