Skip to content

Commit 4bf4e87

Browse files
authored
Static_cast std::size_t to build flang_rt in 32-bit. (#149529)
1 parent f6641e2 commit 4bf4e87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/lib/runtime/descriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ RT_API_ATTRS void Descriptor::Establish(int characterKind,
8585
RT_API_ATTRS void Descriptor::Establish(const typeInfo::DerivedType &dt,
8686
void *p, int rank, const SubscriptValue *extent,
8787
ISO::CFI_attribute_t attribute) {
88-
std::size_t elementBytes{dt.sizeInBytes()};
88+
auto elementBytes{static_cast<std::size_t>(dt.sizeInBytes())};
8989
ISO::EstablishDescriptor(
9090
&raw_, p, attribute, CFI_type_struct, elementBytes, rank, extent);
9191
if (elementBytes == 0) {

0 commit comments

Comments
 (0)