From 0735c06f058b92eea23d59e92f667e61027466d3 Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Thu, 3 Sep 2020 14:55:13 -0700 Subject: [PATCH] Used size of integers for rank field instead (#1187) long is 64 bits on Linux and the data sent back from server will always be 32 bits for ranks --- source/shared/core_util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/shared/core_util.cpp b/source/shared/core_util.cpp index d616d78d..e76eacc1 100644 --- a/source/shared/core_util.cpp +++ b/source/shared/core_util.cpp @@ -576,7 +576,7 @@ namespace data_classification { // Get rank info if (getRankInfo) { queryrank = *(reinterpret_cast(ptr)); - ptr += sizeof(long); + ptr += sizeof(int); meta->rank = queryrank; } @@ -605,7 +605,7 @@ namespace data_classification { if (getRankInfo) { colrank = *(reinterpret_cast(ptr)); - ptr += sizeof(long); + ptr += sizeof(int); pair.rank = colrank; }