diff options
-rw-r--r-- | apropos_db.c | 4 | ||||
-rw-r--r-- | cgi.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apropos_db.c b/apropos_db.c index c954aa4e..f50e91f2 100644 --- a/apropos_db.c +++ b/apropos_db.c @@ -197,7 +197,7 @@ btree_read(const DBT *k, const DBT *v, static size_t norm_utf8(unsigned int cp, char out[7]) { - size_t rc; + int rc; rc = 0; @@ -238,7 +238,7 @@ norm_utf8(unsigned int cp, char out[7]) return(0); out[rc] = '\0'; - return(rc); + return((size_t)rc); } /* @@ -134,7 +134,7 @@ atou(const char *buf, unsigned *v) return(0); if ((errno == ERANGE && (lval == LONG_MAX || lval == LONG_MIN)) || - (lval > UINT_MAX || lval < 0)) + (lval > INT_MAX || lval < 0)) return(0); *v = (unsigned int)lval; |