summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/version.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c
index 4253042..890ec7e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -218,9 +218,9 @@ int apk_version_compare_blob(apk_blob_t a, apk_blob_t b)
return APK_VERSION_LESS;
if (bt == TOKEN_SUFFIX && get_token(&bt, &b) < 0)
return APK_VERSION_GREATER;
- if (at == TOKEN_END)
+ if (at > bt)
return APK_VERSION_LESS;
- if (bt == TOKEN_END)
+ if (bt > at)
return APK_VERSION_GREATER;
return APK_VERSION_EQUAL;