diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-05-01 23:16:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-05-01 23:16:51 +0000 |
commit | 4be2136de427cd3bfe1e8ad0e3e21d9d9427896a (patch) | |
tree | 185f3d6e2e759797c5d990d211dea20d5191468f | |
parent | c4dbed040b1e79ab76e7e42c38c235584d26388f (diff) |
prevent two compiler warnings on comparisons between signed and unsigned
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index 3df33be5e..feb16b5d9 100644 --- a/src/main.c +++ b/src/main.c @@ -2248,7 +2248,7 @@ static void parseconfig(const char *filename, * We assume that we are using the ASCII version here. */ int n = GetModuleFileName(0, filebuffer, sizeof(filebuffer)); - if (n > 0 && n < sizeof(filebuffer)) { + if (n > 0 && n < (int)sizeof(filebuffer)) { /* We got a valid filename - get the directory part */ char *lastdirchar = strrchr(filebuffer, '\\'); if (lastdirchar) { @@ -2256,7 +2256,7 @@ static void parseconfig(const char *filename, *lastdirchar = 0; /* If we have enough space, build the RC filename */ remaining = sizeof(filebuffer) - strlen(filebuffer); - if (strlen(CURLRC) < remaining - 1) { + if ((int)strlen(CURLRC) < remaining - 1) { snprintf(lastdirchar, remaining, "%s%s", DIR_CHAR, CURLRC); /* Don't bother checking if it exists - we do |