From 5f97c0cd7657cdeb6196b6f2c83e44990044f52f Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Fri, 5 Oct 2018 09:06:02 -0500 Subject: [PATCH] HADOOP-15820. ZStandardDecompressor native code sets an integer field as a long. Contributed by Jason Lowe (cherry picked from commit f13e231025333ebf80b30bbdce1296cef554943b) --- .../org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c index 123675688de..e75a6efd0db 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c @@ -145,7 +145,7 @@ JNIEXPORT void JNICALL Java_org_apache_hadoop_io_compress_zstd_ZStandardDecompre THROW(env, "java/lang/InternalError", dlsym_ZSTD_getErrorName(result)); return; } - (*env)->SetLongField(env, this, ZStandardDecompressor_remaining, 0); + (*env)->SetIntField(env, this, ZStandardDecompressor_remaining, 0); }