@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user