]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/getopt.cpp
Fix a compilation error on 64-bit systems
[libs/core.git] / 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();
 
        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)
        {
        list<string> switches;
        for(list<OptBase *>::const_iterator i=opts.begin(); i!=opts.end(); ++i)
        {