Source-Changes-HG archive

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

[src/trunk]: src/tests/include/sys Fix two tests for typefit: constants large...



details:   https://anonhg.NetBSD.org/src/rev/b1804b3084d1
branches:  trunk
changeset: 789728:b1804b3084d1
user:      gsutre <gsutre%NetBSD.org@localhost>
date:      Thu Sep 05 09:01:27 2013 +0000

description:
Fix two tests for typefit: constants larger than LLONG_MAX
do not fit in a signed long long.

diffstat:

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

diffs (29 lines):

diff -r 47ee108ee6b9 -r b1804b3084d1 tests/include/sys/t_cdefs.c
--- a/tests/include/sys/t_cdefs.c       Thu Sep 05 07:53:10 2013 +0000
+++ b/tests/include/sys/t_cdefs.c       Thu Sep 05 09:01:27 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cdefs.c,v 1.2 2012/03/23 23:12:28 matt Exp $ */
+/* $NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre 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.2 2012/03/23 23:12:28 matt Exp $");
+__RCSID("$NetBSD: t_cdefs.c,v 1.3 2013/09/05 09:01:27 gsutre Exp $");
 
 #include <atf-c.h>
 #include <sys/types.h>
@@ -206,8 +206,8 @@
        CHECK(signed long long, -1, 0);
        CHECK(signed long long, 1, 0);
        CHECK(signed long long, 0x7fffffffffffffffLL, 0);
-       CHECK(signed long long, 0x8000000000000000LL, 0);
-       CHECK(signed long long, 0xffffffffffffffffLL, 0);
+       CHECK(signed long long, 0x8000000000000000LL, 1);
+       CHECK(signed long long, 0xffffffffffffffffLL, 1);
 
 #undef CHECK
 }



Home | Main Index | Thread Index | Old Index