aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-03-28 18:48:32 +0100
committerMattias Andrée <maandree@operamail.com>2015-10-02 15:26:47 +0200
commite42838206df3ed2064f0b62751b32689b95ca635 (patch)
treee3dc9e350a99fdddfeea01a30ed16d3665a9a1cb /src
parentupdate dist for python 3.5 (diff)
downloadargparser-e42838206df3ed2064f0b62751b32689b95ca635.tar.gz
argparser-e42838206df3ed2064f0b62751b32689b95ca635.tar.bz2
argparser-e42838206df3ed2064f0b62751b32689b95ca635.tar.xz
fix bug reported by textbrowser reported in #15
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/argparser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argparser.c b/src/argparser.c
index 527b40e..9a0445f 100644
--- a/src/argparser.c
+++ b/src/argparser.c
@@ -1636,7 +1636,7 @@ int args_parse(int argc, char** argv)
*/
static int cmp(const char* a, const char* b)
{
- char c;
+ int c;
while (*a && *b)
{
if ((c = (*a < *b ? -1 : (*a > *b ? 1 : 0))))