summaryrefslogtreecommitdiff
path: root/flower
diff options
context:
space:
mode:
authorGraham Percival <graham@percival-music.ca>2011-12-08 21:30:29 -0800
committerGraham Percival <graham@percival-music.ca>2011-12-14 01:51:06 -0800
commitc8219a2387c4c1d9bcfe5d4222ea20ada83e288a (patch)
treefeed530a925cf6a63857ee10a040e339ff780b03 /flower
parentb062d7bfeaa7baab1e2543417d41898ca5281c79 (diff)
Avoid implicit sign conversion
Diffstat (limited to 'flower')
-rw-r--r--flower/getopt-long.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/flower/getopt-long.cc b/flower/getopt-long.cc
index dbabcbcf08..2ade561cce 100644
--- a/flower/getopt-long.cc
+++ b/flower/getopt-long.cc
@@ -54,7 +54,7 @@ Getopt_long::parselong ()
assert (*optnm);
char const *endopt = strchr (optnm, '=');
- size_t searchlen = (endopt) ? endopt - optnm : strlen (optnm);
+ size_t searchlen = (endopt) ? (size_t) (endopt - optnm) : strlen (optnm);
found_option_ = 0;
for (int i = 0; i < table_len_; i++)
@@ -314,9 +314,9 @@ Long_option_init::table_string (Long_option_init *l)
{
string tabstr = "";
- int wid = 0;
+ size_t wid = 0;
for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
- wid = max (int (wid), int (l[i].str_for_help ().length ()));
+ wid = max (wid, l[i].str_for_help ().length ());
for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
{