From 6480d03f176888999b56a2fa09ddf368f5ff5913 Mon Sep 17 00:00:00 2001 From: phoglund Date: Fri, 28 Aug 2015 02:58:41 -0700 Subject: [PATCH] Make jni_helpers build on arm32. BUG=None Review URL: https://codereview.webrtc.org/1311753002 Cr-Commit-Position: refs/heads/master@{#9806} --- talk/app/webrtc/java/jni/jni_helpers.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/talk/app/webrtc/java/jni/jni_helpers.cc b/talk/app/webrtc/java/jni/jni_helpers.cc index 448d1ad91b..ecad5df751 100644 --- a/talk/app/webrtc/java/jni/jni_helpers.cc +++ b/talk/app/webrtc/java/jni/jni_helpers.cc @@ -103,7 +103,8 @@ jint InitGlobalJniVariables(JavaVM *jvm) { // Return thread ID as a string. static std::string GetThreadId() { char buf[21]; // Big enough to hold a kuint64max plus terminating NULL. - CHECK_LT(snprintf(buf, sizeof(buf), "%ld", syscall(__NR_gettid)), + CHECK_LT(snprintf(buf, sizeof(buf), "%ld", + static_cast(syscall(__NR_gettid))), sizeof(buf)) << "Thread id is bigger than uint64??"; return std::string(buf);