From 98490bccf605478f98cb8101b6faf1f4d857b87f Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Tue, 23 Dec 2014 14:22:56 +0000 Subject: [PATCH] Fix the build on Mac OS X --- java/rocksjni/slice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/rocksjni/slice.cc b/java/rocksjni/slice.cc index c92ca5ec6..e4b7cf03b 100644 --- a/java/rocksjni/slice.cc +++ b/java/rocksjni/slice.cc @@ -28,7 +28,7 @@ void Java_org_rocksdb_AbstractSlice_createNewSliceFromString( JNIEnv* env, jobject jobj, jstring jstr) { const auto* str = env->GetStringUTFChars(jstr, 0); - const int len = strlen(str); + const size_t len = strlen(str); char* buf = new char[len]; memcpy(buf, str, len); env->ReleaseStringUTFChars(jstr, str);