Fix format specifier used in RCTCxxMethod

Summary:
[`CxxModule::Method::callbacks`](2161f92aaf/ReactCommon/cxxreact/CxxModule.h (L66)) is `size_t` which uses `%zu` as the format specifier. Newer versions of clang can warn or error on this. This change prevents that from happening.

Local builds with clang 5.
Closes https://github.com/facebook/react-native/pull/15402

Differential Revision: D5583710

Pulled By: javache

fbshipit-source-id: 1d1e740c275fddfea177cf9476cd1d03b7e27330
This commit is contained in:
Dave Lee 2017-08-08 11:35:34 -07:00 коммит произвёл Facebook Github Bot
Родитель d013ba3915
Коммит 0e3117c972
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -66,7 +66,7 @@ using namespace facebook::react;
CxxModule::Callback second;
if (arguments.count < _method->callbacks) {
RCTLogError(@"Method %@.%s expects at least %lu arguments, but got %tu",
RCTLogError(@"Method %@.%s expects at least %zu arguments, but got %tu",
RCTBridgeModuleNameForClass([module class]), _method->name.c_str(),
_method->callbacks, arguments.count);
return nil;