]> git.tdb.fi Git - builder.git/blobdiff - source/config.cpp
Fix compile errors on 64-bit systems
[builder.git] / source / config.cpp
index d4f9384c5b1b05b7eb93becdcdf2a2e9a9995b18..99bfeeaf14c84107a87dd9729356f1ea1dec8cdc 100644 (file)
@@ -34,7 +34,7 @@ const Config::Option &Config::get_option(const string &name) const
 {
        OptionMap::const_iterator i=options.find(name);
        if(i==options.end())
-               throw Exception("Tried to access nonexistent option "+name);
+               throw KeyError("Unknown option", name);
 
        return i->second;
 }
@@ -103,10 +103,10 @@ void Config::finish()
                for(OptionMap::iterator i=options.begin(); i!=options.end(); ++i)
                {
                        Option &opt=i->second;
-                       unsigned dollar=0;
+                       string::size_type dollar=0;
                        while((dollar=opt.value.find('$', dollar))!=string::npos)
                        {
-                               unsigned end;
+                               string::size_type end;
                                string var;
                                if(opt.value[dollar+1]=='{')
                                {