Coverity CID 2736: Remove 16 bit int compat code.

This commit is contained in:
christos 2006-03-21 16:46:44 +00:00
parent f0174eb74b
commit 0c6d11b6a4

View File

@ -1,4 +1,4 @@
/* $NetBSD: set.c,v 1.22 2006/03/17 22:38:44 christos Exp $ */
/* $NetBSD: set.c,v 1.23 2006/03/21 16:46:44 christos Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)set.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: set.c,v 1.22 2006/03/17 22:38:44 christos Exp $");
__RCSID("$NetBSD: set.c,v 1.23 2006/03/21 16:46:44 christos Exp $");
#endif
#endif /* not lint */
@ -346,18 +346,13 @@ Char *
putn(int n)
{
static Char numbers[15];
int num = -1;
putp = numbers;
if (n < 0) {
n = -n;
*putp++ = '-';
}
if ((unsigned int)num == 0xffffU && (unsigned int)n == 0x8000U) {
*putp++ = '3';
n = 2768;
} else if ((unsigned int)num == 0xffffffffU &&
(unsigned int)n == 0x80000000U) {
if ((unsigned int)n == 0x80000000U) {
*putp++ = '2';
n = 147483648;
}