summaryrefslogtreecommitdiffstats
path: root/subsurface-core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 18:26:59 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-03-09 21:47:10 -0800
commitb0283c2a99ba546f0a039c7ef8b781e50f53c316 (patch)
tree4277d56c036d88fec3449ea1b3f0f72439f844a9 /subsurface-core/parse-xml.c
parent1dab8800e5f0b768b72892930314c8ad63b2b568 (diff)
downloadsubsurface-b0283c2a99ba546f0a039c7ef8b781e50f53c316.tar.gz
Clean up signedness confusion in parse-xml.c
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-core/parse-xml.c')
-rw-r--r--subsurface-core/parse-xml.c8
1 files changed, 5 insertions, 3 deletions
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;