diff --git a/source/dub/dependency.d b/source/dub/dependency.d index 66cd3ca..54df6da 100644 --- a/source/dub/dependency.d +++ b/source/dub/dependency.d @@ -76,7 +76,7 @@ const { foreach( i; 0 .. min(v.length, other.v.length) ) if( v[i] != other.v[i] ) - return v[i] - other.v[i]; + return cast(int)v[i] - cast(int)other.v[i]; return cast(int)v.length - cast(int)other.v.length; }