Specify float value in ParagraphLayoutManager (#37660)

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: https://github.com/facebook/react-native/pull/37660

Test Plan: Tested with RNW tests

Reviewed By: NickGerleman

Differential Revision: D46560099

Pulled By: javache

fbshipit-source-id: de593cbe60677533f5194ab8fd7e650607b5829e
This commit is contained in:
TatianaKapos
2023-06-13 05:30:16 -07:00
committed by Facebook GitHub Bot
parent 3f7507bae9
commit efc5f73f27
@@ -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 -