]> git.tdb.fi Git - libs/core.git/commitdiff
Fix a compilation error on 64-bit systems
authorMikko Rasa <tdb@tdb.fi>
Sun, 20 Sep 2009 16:16:11 +0000 (16:16 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 20 Sep 2009 16:16:11 +0000 (16:16 +0000)
source/core/getopt.cpp

index be1d151a3ee8e704af0b10b79ed42c7a8b787572..498977569e2179ee203de59f0e1624b536031f70 100644 (file)
@@ -66,7 +66,7 @@ string GetOpt::generate_help() const
        for(list<OptBase *>::const_iterator i=opts.begin(); (!any_short && i!=opts.end()); ++i)
                any_short=(*i)->get_short();
 
-       unsigned maxw=0;
+       string::size_type maxw=0;
        list<string> switches;
        for(list<OptBase *>::const_iterator i=opts.begin(); i!=opts.end(); ++i)
        {