From dd12dfc38dc83279004b8255381d2c15ee5d0222 Mon Sep 17 00:00:00 2001 From: Rong Ou Date: Wed, 24 Feb 2021 16:24:06 -0800 Subject: [PATCH] fix cuFile JNI compile errors --- java/src/main/native/src/CuFileJni.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/java/src/main/native/src/CuFileJni.cpp b/java/src/main/native/src/CuFileJni.cpp index 054665dc714..4e1d3c190f4 100644 --- a/java/src/main/native/src/CuFileJni.cpp +++ b/java/src/main/native/src/CuFileJni.cpp @@ -218,7 +218,8 @@ class cufile_file { } } - CUDF_EXPECTS(status == buffer.size(), "Size of bytes read is different from buffer size"); + CUDF_EXPECTS(static_cast(status) == buffer.size(), + "Size of bytes read is different from buffer size"); } /** @@ -239,7 +240,8 @@ class cufile_file { } } - CUDF_EXPECTS(status == buffer.size(), "Size of bytes written is different from buffer size"); + CUDF_EXPECTS(static_cast(status) == buffer.size(), + "Size of bytes written is different from buffer size"); } /**