Fixed a bug about string comparison
Some checks failed
clang-build / clang-build (push) Failing after 20s
gcc-build / gcc-build (push) Failing after 5s

This commit is contained in:
2026-03-13 11:48:42 +01:00
parent 55b14ee949
commit 086446039b

View File

@@ -432,8 +432,9 @@ string_result_t string_eq(const string_t *x, const string_t *y, bool case_sensit
}
if (x->char_count != y->char_count) {
result.status = STRING_ERR_INVALID;
SET_MSG(result, "Strings differ in length");
result.value.is_equ = false;
result.status = STRING_OK;
SET_MSG(result, "Comparison completed successfully");
return result;
}