summaryrefslogtreecommitdiff
path: root/src/config_file.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-10-01 20:16:13 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-10-01 20:16:13 +0200
commitcd19ca9584bd01925e05e94e7f3bddae6880acda (patch)
treeea71b5154303735e812d32924fa080ea638f6882 /src/config_file.c
parent9ac581bf7fffaf809214fdd950bb62d242ee52fe (diff)
downloadlibgit2-cd19ca9584bd01925e05e94e7f3bddae6880acda.tar.gz
Squelch a couple of warnings
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/config_file.c')
-rw-r--r--src/config_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c
index 64d57c5c5..a85ae1578 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -134,7 +134,7 @@ static int cvar_match_section(const char *section, const char *query)
qsub = query + section_len;
qdot = strchr(qsub, '.');
/* Make sure the subsections are the same length */
- if (strlen(sdot + 1) != qdot - qsub)
+ if (strlen(sdot + 1) != (size_t) (qdot - qsub))
return 0;
/* The subsection is case-sensitive */