Skip to content

Commit 2dbe769

Browse files
mdvaccafacebook-github-bot
authored andcommitted
NIT remove unnecessary cast in measure
Summary: Trivial clean up of unnecessary cast in measure methods Reviewed By: shergin Differential Revision: D13108542 fbshipit-source-id: 93661f2f5322a790f2d578e6897b89cd1e205c3d
1 parent dcf72ff commit 2dbe769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ReactCommon/fabric/textlayoutmanager/platform/android/TextLayoutManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Size TextLayoutManager::measure(
5656
indices.resize(values->size());
5757
values->getRegion(0, values->size(), indices.data());
5858

59-
return {(float)indices[0], (float)indices[1]};
59+
return {indices[0], indices[1]};
6060
}
6161

6262
} // namespace react

0 commit comments

Comments
 (0)