From 6f31edb26614e9d17d1ea2c938c4aa6024858b62 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Thu, 8 Feb 2024 09:21:25 -0800 Subject: [PATCH] Fix sign shift issue in presto Differential Revision: D53577764 --- .../presto_cpp/presto_protocol/Base64Util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/presto-native-execution/presto_cpp/presto_protocol/Base64Util.cpp b/presto-native-execution/presto_cpp/presto_protocol/Base64Util.cpp index 61d24edde879d..8490ccb4904dc 100644 --- a/presto-native-execution/presto_cpp/presto_protocol/Base64Util.cpp +++ b/presto-native-execution/presto_cpp/presto_protocol/Base64Util.cpp @@ -30,7 +30,7 @@ static const char* kRle = "RLE"; static const char* kArray = "ARRAY"; static const char* kMap = "MAP"; static const char* kInt128Array = "INT128_ARRAY"; -static const __int128_t kInt128Mask = ~(static_cast<__int128_t>(1) << 127); +static const __uint128_t kInt128Mask = ~(static_cast<__uint128_t>(1) << 127); struct ByteStream { explicit ByteStream(const char* data, int32_t offset = 0)