File tree Expand file tree Collapse file tree
packages/react-native/ReactCommon
react/renderer/components/view Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ void YogaLayoutableShadowNode::updateYogaChildrenOwnersIfNeeded() {
338338 // initialised function-local static.
339339 // NOLINTBEGIN(cppcoreguidelines-pro-type-reinterpret-cast)
340340 static auto * const kDetachedYogaNodeOwnerSentinel =
341- reinterpret_cast <yoga::Node*>(0xBADC0FFEE0DDF00DULL );
341+ reinterpret_cast <yoga::Node*>(0xBADC0FFEE0DDF000ULL );
342342 // NOLINTEND(cppcoreguidelines-pro-type-reinterpret-cast)
343343 for (auto & childYogaNode : yogaNode_.getChildren ()) {
344344 if (YGNodeGetOwner (childYogaNode) == &yogaNode_) {
Original file line number Diff line number Diff line change @@ -279,17 +279,11 @@ size_t YGNodeGetChildCount(const YGNodeConstRef node) {
279279}
280280
281281YGNodeRef YGNodeGetOwner (const YGNodeRef node) {
282- // The owner is returned verbatim as an opaque handle. It may hold a
283- // non-dereferenceable sentinel value, so it must not undergo a
284- // derived-to-base conversion that asserts pointer alignment/validity.
285- return reinterpret_cast <YGNodeRef>(resolveRef (node)->getOwner ());
282+ return resolveRef (node)->getOwner ();
286283}
287284
288285YGNodeRef YGNodeGetParent (const YGNodeRef node) {
289- // The owner is returned verbatim as an opaque handle. It may hold a
290- // non-dereferenceable sentinel value, so it must not undergo a
291- // derived-to-base conversion that asserts pointer alignment/validity.
292- return reinterpret_cast <YGNodeRef>(resolveRef (node)->getOwner ());
286+ return resolveRef (node)->getOwner ();
293287}
294288
295289void YGNodeSetConfig (YGNodeRef node, YGConfigRef config) {
You can’t perform that action at this time.
0 commit comments