From b0283c2a99ba546f0a039c7ef8b781e50f53c316 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Mar 2016 18:26:59 -0800 Subject: Clean up signedness confusion in parse-xml.c Signed-off-by: Dirk Hohndel --- subsurface-core/parse-xml.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'subsurface-core/parse-xml.c') diff --git a/subsurface-core/parse-xml.c b/subsurface-core/parse-xml.c index 12e029fe2..17bd69d53 100644 --- a/subsurface-core/parse-xml.c +++ b/subsurface-core/parse-xml.c @@ -2013,7 +2013,7 @@ const char *preprocess_divelog_de(const char *buffer) if (ret) { xmlParserCtxtPtr ctx; char buf[] = ""; - int i; + size_t i; for (i = 0; i < strlen(ret); ++i) if (!isascii(ret[i])) @@ -2260,7 +2260,8 @@ extern int dm4_dive(void *param, int columns, char **data, char **column) { (void) columns; (void) column; - int i, interval, retval = 0; + unsigned int i; + int interval, retval = 0; sqlite3 *handle = (sqlite3 *)param; float *profileBlob; unsigned char *tempBlob; @@ -2388,7 +2389,8 @@ extern int dm5_dive(void *param, int columns, char **data, char **column) { (void) columns; (void) column; - int i, interval, retval = 0, block_size; + unsigned int i; + int interval, retval = 0, block_size; sqlite3 *handle = (sqlite3 *)param; unsigned const char *sampleBlob; char *err = NULL; -- cgit v1.2.3-70-g09d2