mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
xplat/js/react-native-github/packages/react-native/Libraries/TypeSafety/RCTConvertHelpers.h (#58263)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/58263 Reviewed By: GauravKataria Differential Revision: D115689053 fbshipit-source-id: c93ce5eb243ea8df001f7cfd4eb53759278728a6
This commit is contained in:
1 parent
e54aea474f
commit
1b404433f8
1 file changed
+1
-1
@@ -68,7 +68,7 @@ facebook::react::LazyVector<T> RCTBridgingToVec(id value, T (^ctor)(id element))
|
||||
{
|
||||
NSArray *array = RCTBridgingToArray(value);
|
||||
using _size_t = typename facebook::react::LazyVector<T>::size_type;
|
||||
_size_t size = static_cast<_size_t>(array.count);
|
||||
auto size = static_cast<_size_t>(array.count);
|
||||
return facebook::react::LazyVector<T>::fromUnsafeRawValue(array, size, ctor);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user