@@ -285,9 +285,10 @@ constexpr const DescriptorType *TypeDescWriter::type(Integer_c auto const *val)
|
|||||||
constexpr auto PT = isSigned ?
|
constexpr auto PT = isSigned ?
|
||||||
PrimitiveType::SignedInteger :
|
PrimitiveType::SignedInteger :
|
||||||
PrimitiveType::UnsignedInteger;
|
PrimitiveType::UnsignedInteger;
|
||||||
constexpr auto Bytes = sizeof(*val);
|
constexpr auto sz = sizeof(*val);
|
||||||
return getType([val] {
|
constexpr auto bytes = sizeof(*val);
|
||||||
switch (sizeof(*val)) {
|
return getType([] {
|
||||||
|
switch (sz) {
|
||||||
case 1:
|
case 1:
|
||||||
return isSigned ? types::Int8 : types::Uint8;
|
return isSigned ? types::Int8 : types::Uint8;
|
||||||
case 2:
|
case 2:
|
||||||
@@ -298,7 +299,7 @@ constexpr const DescriptorType *TypeDescWriter::type(Integer_c auto const *val)
|
|||||||
return isSigned ? types::Int64 : types::Uint64;
|
return isSigned ? types::Int64 : types::Uint64;
|
||||||
}
|
}
|
||||||
return types::Int32;
|
return types::Int32;
|
||||||
}(), 0, PT, Bytes);
|
}(), 0, PT, bytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr const DescriptorType *TypeDescWriter::type(const bool*) const noexcept {
|
constexpr const DescriptorType *TypeDescWriter::type(const bool*) const noexcept {
|
||||||
|
|||||||
Reference in New Issue
Block a user