diff --git a/source/dub/dependency.d b/source/dub/dependency.d index 6c9c73f..1ed6bdf 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -126,7 +126,7 @@ foreach( i; 0 .. min(v.length, ov.length) ) { if( v[i] != ov[i] ) { if(isNumeric(v[i]) && isNumeric(ov[i])) - return to!int(v[i]) < to!int(ov[i])? -1 : 1; + return to!size_t(v[i]) < to!size_t(ov[i])? -1 : 1; else return v[i] < ov[i]? -1 : 1; }