We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6641e2 commit 4bf4e87Copy full SHA for 4bf4e87
flang-rt/lib/runtime/descriptor.cpp
@@ -85,7 +85,7 @@ RT_API_ATTRS void Descriptor::Establish(int characterKind,
85
RT_API_ATTRS void Descriptor::Establish(const typeInfo::DerivedType &dt,
86
void *p, int rank, const SubscriptValue *extent,
87
ISO::CFI_attribute_t attribute) {
88
- std::size_t elementBytes{dt.sizeInBytes()};
+ auto elementBytes{static_cast<std::size_t>(dt.sizeInBytes())};
89
ISO::EstablishDescriptor(
90
&raw_, p, attribute, CFI_type_struct, elementBytes, rank, extent);
91
if (elementBytes == 0) {
0 commit comments