Skip to content

Commit

Permalink
Specify float value in ParagraphLayoutManager (#37660)
Browse files Browse the repository at this point in the history
Summary:
React-Native-Windows had to override this file because we treat certain warning as errors. This fix adds in the "f suffix" to remove the unspecified float error.

## Changelog:
[GENERAL] [FIXED] - Specify float value in ParagraphLayoutManager

Pull Request resolved: #37660

Test Plan: Tested with RNW tests

Reviewed By: NickGerleman

Differential Revision: D46560099

Pulled By: javache

fbshipit-source-id: de593cbe60677533f5194ab8fd7e650607b5829e
  • Loading branch information
TatianaKapos authored and facebook-github-bot committed Jun 13, 2023
1 parent 3f7507b commit efc5f73
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ bool ParagraphLayoutManager::shoudMeasureString(

bool hasMaximumSizeChanged =
layoutConstraints.maximumSize.width != lastAvailableWidth_;
Float threshold = 0.01;
Float threshold = 0.01f;
bool doesMaximumSizeMatchLastMeasurement =
std::abs(
layoutConstraints.maximumSize.width -
Expand Down

0 comments on commit efc5f73

Please sign in to comment.