SCCS-vsn: bin/csh/set.c 5.19
-static char sccsid[] = "@(#)set.c 5.18 (Berkeley) %G%";
+static char sccsid[] = "@(#)set.c 5.19 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
*putp++ = '-';
}
num = 2; /* confuse lint */
*putp++ = '-';
}
num = 2; /* confuse lint */
- if (sizeof(int) == num && n == -32768) {
+ if (sizeof(int) == num && ((unsigned int) n) == 0x8000) {
*putp++ = '3';
n = 2768;
#ifdef pdp11
*putp++ = '3';
n = 2768;
#ifdef pdp11
}
else {
num = 4; /* confuse lint */
}
else {
num = 4; /* confuse lint */
- if (sizeof(int) == num && n == -2147483648) {
+ if (sizeof(int) == num && ((unsigned int) n) == 0x80000000) {
*putp++ = '2';
n = 147483648;
}
*putp++ = '2';
n = 147483648;
}