Fix build warning
Build / build (push) Successful in 22s

This commit is contained in:
2026-05-08 22:28:11 -05:00
parent 51999199c6
commit 298184d58f
+5 -4
View File
@@ -285,9 +285,10 @@ constexpr const DescriptorType *TypeDescWriter::type(Integer_c auto const *val)
constexpr auto PT = isSigned ?
PrimitiveType::SignedInteger :
PrimitiveType::UnsignedInteger;
constexpr auto Bytes = sizeof(*val);
return getType([val] {
switch (sizeof(*val)) {
constexpr auto sz = sizeof(*val);
constexpr auto bytes = sizeof(*val);
return getType([] {
switch (sz) {
case 1:
return isSigned ? types::Int8 : types::Uint8;
case 2:
@@ -298,7 +299,7 @@ constexpr const DescriptorType *TypeDescWriter::type(Integer_c auto const *val)
return isSigned ? types::Int64 : types::Uint64;
}
return types::Int32;
}(), 0, PT, Bytes);
}(), 0, PT, bytes);
}
constexpr const DescriptorType *TypeDescWriter::type(const bool*) const noexcept {