Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdlib Fix problem with overflowing constant ...
details: https://anonhg.NetBSD.org/src/rev/7e60259932d7
branches: trunk
changeset: 765750:7e60259932d7
user: haad <haad%NetBSD.org@localhost>
date: Sat Jun 04 22:49:49 2011 +0000
description:
Fix problem with overflowing constant definition
t_strtol.c:95: warning: overflow in implicit constant conversion
diffstat:
tests/lib/libc/stdlib/t_strtol.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 847a3ed72cd0 -r 7e60259932d7 tests/lib/libc/stdlib/t_strtol.c
--- a/tests/lib/libc/stdlib/t_strtol.c Sat Jun 04 18:27:39 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtol.c Sat Jun 04 22:49:49 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_strtol.c,v 1.1 2011/06/04 14:56:58 jruoho Exp $ */
+/* $NetBSD: t_strtol.c,v 1.2 2011/06/04 22:49:49 haad Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtol.c,v 1.1 2011/06/04 14:56:58 jruoho Exp $");
+__RCSID("$NetBSD: t_strtol.c,v 1.2 2011/06/04 22:49:49 haad Exp $");
#include <atf-c.h>
#include <errno.h>
@@ -92,8 +92,8 @@
{ "123456789", 342391, 8, NULL },
{ "0123456789", 342391, 0, NULL },
{ "0123456789", 123456789, 10, NULL },
- { "0123456789", 0x123456789, 16, NULL },
- { "0x123456789", 0x123456789, 0, NULL },
+ { "0123456789", (uint32_t)0x123456789, 16, NULL },
+ { "0x123456789", (uint32_t)0x123456789, 0, NULL },
{ "0x75bcd15", 123456789, 0, NULL },
};
Home |
Main Index |
Thread Index |
Old Index