mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-30 05:24:22 +00:00
Fix a few sign-conversion and shorten-64-to-32 warnings while converting some values from int to unsigned
This commit is contained in:
@@ -230,7 +230,7 @@ int display_max = 65536 * 16 * 2;
|
||||
extern int maxpages;
|
||||
|
||||
char sysout_name[MAXPATHLEN]; /* Set by read_Xoption, in the X version. */
|
||||
int sysout_size = 0; /* ditto */
|
||||
unsigned sysout_size = 0; /* ditto */
|
||||
|
||||
int flushing = FALSE; /* see dbprint.h if set, all debug/trace printing will call fflush(stdout) after each printf */
|
||||
|
||||
@@ -400,7 +400,7 @@ int main(int argc, char *argv[])
|
||||
errno = 0;
|
||||
tmpint = strtol(argv[i], (char **)NULL, 10);
|
||||
if (errno == 0 && tmpint > 0) {
|
||||
sysout_size = tmpint;
|
||||
sysout_size = (unsigned)tmpint;
|
||||
} else {
|
||||
fprintf(stderr, "Bad value for -m (integer > 0)\n");
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user