From ebfed0b5dff121b910f1c23eeccad991693491f3 Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 11 Oct 2001 14:42:03 +0000 Subject: [PATCH] Fixed a signedness problem git-svn-id: svn://svn.cc65.org/cc65/trunk@1034 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/common/cmdline.c | 4 ++-- src/common/cmdline.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/cmdline.c b/src/common/cmdline.c index 4b7021d54..8d338028b 100644 --- a/src/common/cmdline.c +++ b/src/common/cmdline.c @@ -170,14 +170,14 @@ static void ExpandFile (CmdLine* L, const char* Name) -void InitCmdLine (int* aArgCount, char** aArgVec[], const char* aProgName) +void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName) /* Initialize command line parsing. aArgVec is the argument array terminated by * a NULL pointer (as usual), ArgCount is the number of valid arguments in the * array. Both arguments are remembered in static storage. */ { CmdLine L; - int I; + unsigned I; /* Get the program name from argv[0] but strip a path */ if (*(aArgVec)[0] == 0) { diff --git a/src/common/cmdline.h b/src/common/cmdline.h index 97f27924e..ce8f1e1ba 100644 --- a/src/common/cmdline.h +++ b/src/common/cmdline.h @@ -71,7 +71,7 @@ struct LongOpt { -void InitCmdLine (int* aArgCount, char** aArgVec[], const char* aProgName); +void InitCmdLine (unsigned* aArgCount, char** aArgVec[], const char* aProgName); /* Initialize command line parsing. aArgVec is the argument array terminated by * a NULL pointer (as usual), ArgCount is the number of valid arguments in the * array. Both arguments are remembered in static storage. -- 2.39.5