1
0
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:
Nick Briggs
2022-12-23 18:50:35 -08:00
parent 60a9497e7a
commit 43809d070b
7 changed files with 16 additions and 16 deletions

View File

@@ -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);