Skip to content

Commit f360dec

Browse files
committed
fixing typo in pointer check of object
1 parent 05a8699 commit f360dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang-rt/lib/runtime/derived-api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ bool RTDEF(ExtendsTypeOf)(const Descriptor &a, const Descriptor &mold) {
127127
if ((mold.IsPointer() && !mold.IsAssociated()) ||
128128
(mold.IsAllocatable() && !mold.IsAllocated())) {
129129
return true;
130-
} else if ((a.IsPointer() && !mold.IsAssociated()) ||
130+
} else if ((a.IsPointer() && !a.IsAssociated()) ||
131131
(a.IsAllocatable() && !a.IsAllocated())) {
132132
return false;
133133
}

0 commit comments

Comments
 (0)