diff options
author | Ian Rogers <irogers@google.com> | 2014-05-14 14:38:16 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-05-14 14:38:16 -0700 |
commit | 1ee99352d85a07558688365dba70e9aa8f476c03 (patch) | |
tree | 0a6b4605221824730e6d3c634c135d1f95258298 /runtime | |
parent | 2d10b206f9d0b97396b7dadb9a6415cd39efd341 (diff) | |
download | android_art-1ee99352d85a07558688365dba70e9aa8f476c03.tar.gz android_art-1ee99352d85a07558688365dba70e9aa8f476c03.tar.bz2 android_art-1ee99352d85a07558688365dba70e9aa8f476c03.zip |
64-bit build fix.
sizeof vs jlong comparison.
Change-Id: I6d9377e71169911201b2342d914ac014eb9c0b4a
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/jni_internal_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/jni_internal_test.cc b/runtime/jni_internal_test.cc index 709530e95e..83e9b1028a 100644 --- a/runtime/jni_internal_test.cc +++ b/runtime/jni_internal_test.cc @@ -1497,7 +1497,7 @@ TEST_F(JniInternalTest, NewDirectBuffer_GetDirectBufferAddress_GetDirectBufferCa ASSERT_NE(buffer, nullptr); ASSERT_TRUE(env_->IsInstanceOf(buffer, buffer_class)); ASSERT_EQ(env_->GetDirectBufferAddress(buffer), bytes); - ASSERT_EQ(env_->GetDirectBufferCapacity(buffer), sizeof(bytes)); + ASSERT_EQ(env_->GetDirectBufferCapacity(buffer), static_cast<jlong>(sizeof(bytes))); } TEST_F(JniInternalTest, MonitorEnterExit) { |