Module Name: src Committed By: haad Date: Sat Jun 4 22:49:49 UTC 2011
Modified Files: src/tests/lib/libc/stdlib: t_strtol.c Log Message: Fix problem with overflowing constant definition t_strtol.c:95: warning: overflow in implicit constant conversion To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/tests/lib/libc/stdlib/t_strtol.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libc/stdlib/t_strtol.c diff -u src/tests/lib/libc/stdlib/t_strtol.c:1.1 src/tests/lib/libc/stdlib/t_strtol.c:1.2 --- src/tests/lib/libc/stdlib/t_strtol.c:1.1 Sat Jun 4 14:56:58 2011 +++ src/tests/lib/libc/stdlib/t_strtol.c Sat Jun 4 22:49:49 2011 @@ -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 }, };