]> git.tdb.fi Git - builder.git/blobdiff - source/condition.cpp
Fix compile errors on 64-bit systems
[builder.git] / source / condition.cpp
index 5cce44462d3e984b9f61e85f2152e9c994a70d07..4c9ac0b84453935c8afa3b86cc4cfcdb934afcd9 100644 (file)
@@ -1,7 +1,7 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
@@ -23,7 +23,7 @@ Condition::Condition(SourcePackage &p, const string &expr):
                if(*i=="and")
                        continue;
 
-               unsigned token=i->find_first_of("=!");
+               string::size_type token=i->find_first_of("=!");
                if(token==string::npos)
                        expression.insert(StringMap::value_type(*i, "!0"));
                else if(token==0 && (*i)[0]=='!')