Skip to content
This repository was archived by the owner on May 9, 2024. It is now read-only.

Commit e4702f8

Browse files
committed
Remove implicit cast to size_t
1 parent 181dda1 commit e4702f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omniscidb/Shared/SqlTypesLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ inline uint64_t exp_to_scale(const unsigned exp) {
7575
}
7676

7777
inline size_t get_bit_width(const hdk::ir::Type* type) {
78-
size_t res = type->isString() ? 32 : type->canonicalSize() * 8;
78+
int res = type->isString() ? 32 : type->canonicalSize() * 8;
7979
if (res < 0) {
8080
throw std::runtime_error("Unexpected type: " + type->toString());
8181
}

0 commit comments

Comments
 (0)