pkg: fix tilde operator

pull/36/head
William Pitcock 2012-07-30 05:03:37 -05:00
parent ec229b7cab
commit 22d7625149
1 changed files with 2 additions and 2 deletions

4
pkg.c
View File

@ -484,9 +484,9 @@ pkg_compare_version(const char *a, const char *b)
if (*one == '~' || *two == '~') if (*one == '~' || *two == '~')
{ {
if (*one != '~') if (*one != '~')
return 1;
if (*two != '~')
return -1; return -1;
if (*two != '~')
return 1;
one++; one++;
two++; two++;