diff options
author | uzhas <uzhas@ydb.tech> | 2024-05-03 16:46:09 +0300 |
---|---|---|
committer | uzhas <uzhas@ydb.tech> | 2024-05-03 16:55:22 +0300 |
commit | bc2b7caa55eaeca255218bf5ca515ec30a311f5d (patch) | |
tree | d867cffaa20d41715cbd0aad946c69b3ce2a4005 | |
parent | e29d55caf8ec9fd8d8a8375766d6f71860cc1355 (diff) | |
download | ydb-bc2b7caa55eaeca255218bf5ca515ec30a311f5d.tar.gz |
fix coverity issue: do not compare unsigned with 0
a73d243c16b171aab4091eb45223c4d723312d8f
-rw-r--r-- | yt/yt/client/table_client/unversioned_row.cpp | 2 |
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); |