From common-commits-return-88941-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Oct 5 16:29:18 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1A6A7180649 for ; Fri, 5 Oct 2018 16:29:17 +0200 (CEST) Received: (qmail 98737 invoked by uid 500); 5 Oct 2018 14:29:17 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 98728 invoked by uid 99); 5 Oct 2018 14:29:17 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2018 14:29:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 074E2E012E; Fri, 5 Oct 2018 14:29:17 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: jlowe@apache.org To: common-commits@hadoop.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: HADOOP-15820. ZStandardDecompressor native code sets an integer field as a long. Contributed by Jason Lowe Date: Fri, 5 Oct 2018 14:29:17 +0000 (UTC) Repository: hadoop Updated Branches: refs/heads/branch-3.1 f3f0a9a2c -> df7ec58ce HADOOP-15820. ZStandardDecompressor native code sets an integer field as a long. Contributed by Jason Lowe (cherry picked from commit f13e231025333ebf80b30bbdce1296cef554943b) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/df7ec58c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/df7ec58c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/df7ec58c Branch: refs/heads/branch-3.1 Commit: df7ec58ced29fc98db04e2d3f6d2c915055382eb Parents: f3f0a9a Author: Jason Lowe Authored: Fri Oct 5 09:06:02 2018 -0500 Committer: Jason Lowe Committed: Fri Oct 5 09:27:23 2018 -0500 ---------------------------------------------------------------------- .../src/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/df7ec58c/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/io/compress/zstd/ZStandardDecompressor.c ---------------------------------------------------------------------- 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 1236756..e75a6ef 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); } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org