Fix warnings in React.xcodeproj

Summary:
Various fixes of xcode projects and cleaning up some warnings
Closes https://github.com/facebook/react-native/pull/13109

Differential Revision: D4762652

Pulled By: lacker

fbshipit-source-id: b452976a58962439de4adecc8e703264af40cb38
This commit is contained in:
Pieter De Baets
2017-03-23 11:25:28 -07:00
committed by Facebook Github Bot
parent 1f15c7526a
commit 9d377e98a0
21 changed files with 213 additions and 87 deletions

View File

@@ -47,7 +47,7 @@ private:
namespace std {
template<>
struct hash<facebook::react::ExecutorToken> {
const size_t operator()(const facebook::react::ExecutorToken& token) const {
size_t operator()(const facebook::react::ExecutorToken& token) const {
return (size_t) token.getPlatformExecutorToken().get();
}
};

View File

@@ -95,7 +95,7 @@ public:
*/
std::string str() const {
const JSChar* utf16 = JSC_JSStringGetCharactersPtr(m_context, m_string);
int stringLength = JSC_JSStringGetLength(m_context, m_string);
size_t stringLength = JSC_JSStringGetLength(m_context, m_string);
return unicode::utf16toUTF8(utf16, stringLength);
}