From 1e30d8a2914fc7088b83ea1e9c376d231c915da3 Mon Sep 17 00:00:00 2001 From: Devavret Makkar Date: Tue, 16 Jun 2020 02:23:58 +0530 Subject: [PATCH] Fix issue #5440 Fixes the narrowing conversion in bytestream reading in patched RLE --- cpp/src/io/orc/stripe_data.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/io/orc/stripe_data.cu b/cpp/src/io/orc/stripe_data.cu index f6e3e38d232..62d2d9a16bb 100644 --- a/cpp/src/io/orc/stripe_data.cu +++ b/cpp/src/io/orc/stripe_data.cu @@ -824,7 +824,7 @@ static __device__ uint32_t Integer_RLEv2( bytestream_readbe(bs, pos * 8 + i * w, w, v); vals[base + i] = v; } else if (mode == 2) { - uint32_t ofs = bytestream_readbits64(bs, pos * 8 + i * w, w); + uint64_t ofs = bytestream_readbits64(bs, pos * 8 + i * w, w); vals[base + i] = rle->baseval.u64[r] + ofs; } else { int64_t delta = rle->delta[r], ofs;