aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruzhas <uzhas@ydb.tech>2024-05-03 16:46:09 +0300
committeruzhas <uzhas@ydb.tech>2024-05-03 16:55:22 +0300
commitbc2b7caa55eaeca255218bf5ca515ec30a311f5d (patch)
treed867cffaa20d41715cbd0aad946c69b3ce2a4005
parente29d55caf8ec9fd8d8a8375766d6f71860cc1355 (diff)
downloadydb-bc2b7caa55eaeca255218bf5ca515ec30a311f5d.tar.gz
fix coverity issue: do not compare unsigned with 0
a73d243c16b171aab4091eb45223c4d723312d8f
-rw-r--r--yt/yt/client/table_client/unversioned_row.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt/yt/client/table_client/unversioned_row.cpp b/yt/yt/client/table_client/unversioned_row.cpp
index 63e125969cc..c9f6ac1c9ae 100644
--- a/yt/yt/client/table_client/unversioned_row.cpp
+++ b/yt/yt/client/table_client/unversioned_row.cpp
@@ -1279,7 +1279,7 @@ bool ValidateNonKeyColumnsAgainstLock(
int mappedId = ApplyIdMapping(value, &idMapping);
if (mappedId < 0 || mappedId >= std::ssize(schema.Columns())) {
int size = nameTable->GetSize();
- if (value.Id < 0 || value.Id >= size) {
+ if (value.Id >= size) {
THROW_ERROR_EXCEPTION("Expected value id in range [0:%v] but got %v",
size - 1,
value.Id);