Skip to content

Commit a44be81

Browse files
committed
fixup
1 parent 13ecf90 commit a44be81

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cpp/velox/operators/serializer/VeloxRowToColumnarConverter.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,12 @@ VectorPtr createFlatVector<TypeKind::HUGEINT>(
110110
memcpy(bytesValue.data(), memoryAddress + offsets[pos] + wordoffset, length);
111111
uint8_t bytesValue2[16]{};
112112
GLUTEN_CHECK(length <= 16, "array out of bounds exception");
113+
#pragma GCC diagnostic push
114+
#pragma GCC diagnostic ignored "-Wstringop-overflow"
113115
for (int k = length - 1; k >= 0; k--) {
114116
bytesValue2[length - 1 - k] = bytesValue[k];
115117
}
118+
#pragma GCC diagnostic pop
116119
if (static_cast<int8_t>(bytesValue[0]) < 0) {
117120
memset(bytesValue2 + length, 255, 16 - length);
118121
}

0 commit comments

Comments
 (0)