Skip to content

Commit

Permalink
fix clang
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuzu CI committed Mar 11, 2024
1 parent c2fe983 commit 98cdee0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/include/storage/store/var_list_column_chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,8 @@ class VarListColumnChunk : public ColumnChunk {
if (numValues == 0)
return 0;
KU_ASSERT(offset <= numValues);
return offset == numValues ?
getValue<uint64_t>(offset - 1) :
getValue<uint64_t>(offset) -
getListLen(offset);
return offset == numValues ? getValue<uint64_t>(offset - 1) :
getValue<uint64_t>(offset) - getListLen(offset);
}

inline uint64_t getListLen(common::offset_t offset) const {
Expand Down

0 comments on commit 98cdee0

Please sign in to comment.