Remove the cases that cause integer overflow on e.g. i386.
This commit is contained in:
parent
5c64bfa640
commit
3b469f3ce9
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: t_strtol.c,v 1.4 2011/06/08 05:31:43 jruoho Exp $ */
|
||||
/* $NetBSD: t_strtol.c,v 1.5 2011/06/14 02:45:58 jruoho Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2011 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: t_strtol.c,v 1.4 2011/06/08 05:31:43 jruoho Exp $");
|
||||
__RCSID("$NetBSD: t_strtol.c,v 1.5 2011/06/14 02:45:58 jruoho Exp $");
|
||||
|
||||
#include <atf-c.h>
|
||||
#include <errno.h>
|
||||
|
@ -92,8 +92,6 @@ ATF_TC_BODY(strtol_base, tc)
|
|||
{ "123456789", 342391, 8, NULL },
|
||||
{ "0123456789", 342391, 0, NULL },
|
||||
{ "0123456789", 123456789, 10, NULL },
|
||||
{ "0123456789", 0x123456789, 16, NULL },
|
||||
{ "0x123456789", 0x123456789, 0, NULL },
|
||||
{ "0x75bcd15", 123456789, 0, NULL },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue