diff --git a/pkg.c b/pkg.c index 820a9ca..8976ec5 100644 --- a/pkg.c +++ b/pkg.c @@ -484,9 +484,9 @@ pkg_compare_version(const char *a, const char *b) if (*one == '~' || *two == '~') { if (*one != '~') - return 1; - if (*two != '~') return -1; + if (*two != '~') + return 1; one++; two++;