Author: mturk Date: Tue Aug 30 10:39:34 2011 New Revision: 1163166 URL: http://svn.apache.org/viewvc?rev=1163166&view=rev Log: Fix native api
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c?rev=1163166&r1=1163165&r2=1163166&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/bzip2.c Tue Aug 30 10:39:34 2011 @@ -64,10 +64,10 @@ ACR_BZIP2_EXPORT(jstring, Bzip2, version return AcrNewJavaStringU(env, BZ2_bzlibVersion()); } -ACR_BZIP2_EXPORT(jlong, Bzip2, deflate0)(JNI_STDARGS, jbyteArray src, jint spos, - jbyteArray dst, jint dpos, jint dlen, - jint len, jint blockSize100k, - jint workFactor) +ACR_BZIP2_EXPORT(jint, Bzip2, deflate0)(JNI_STDARGS, jbyteArray src, jint spos, + jbyteArray dst, jint dpos, jint dlen, + jint len, jint blockSize100k, + jint workFactor) { unsigned int dstLen; char *scp; @@ -89,7 +89,7 @@ ACR_BZIP2_EXPORT(jlong, Bzip2, deflate0) RELEASE_CRITICAL(src, scp); RELEASE_CRITICAL(dst, dcp); if (rc == BZ_OK) - return (jlong)dstLen; + return dstLen; else if (rc == BZ_OUTBUFF_FULL) ACR_THROW(ACR_EX_EOVERFLOW, 0); else if (rc == BZ_MEM_ERROR)