fix decode && update cmp res

This commit is contained in:
2026-07-17 02:33:19 +03:00
parent 67e7fec3e0
commit b528326bf2
152 changed files with 345 additions and 77 deletions
+1 -13
View File
@@ -370,7 +370,7 @@ static int decode_base62(const char* base62_str, char* bit_pt) {
num4b &= ~mask; // low bits
assert(num2b != mask); // not both bits set
bit_pt = putnbits(6, 61 + num2b >> 4, bit_pt); // 61 + (0|1|2) in high bits
bit_pt = putnbits(6, 61 + (num2b >> 4), bit_pt); // 61 + (0|1|2) in high bits
bit_pt = putnbits(4, num4b, bit_pt);
}
@@ -577,18 +577,6 @@ int rpmsetcmp(const char* str1, const char* str2) {
hash_arr2 = pt2;
}
for (int i = 0; i < cnt1; ++i) {
printf("%d ", hash_arr1[i]);
}
printf("\n");
printf("\n\n\n");
for (int i = 0; i < cnt2; ++i) {
printf("%d ", hash_arr2[i]);
}
printf("\n");
// compare
int ge = 1;
int le = 1;