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
This commit is contained in:
Jenny Tam 2020-09-03 14:55:13 -07:00 committed by GitHub
parent 86adf470cb
commit 0735c06f05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -576,7 +576,7 @@ namespace data_classification {
// Get rank info
if (getRankInfo) {
queryrank = *(reinterpret_cast<long*>(ptr));
ptr += sizeof(long);
ptr += sizeof(int);
meta->rank = queryrank;
}
@ -605,7 +605,7 @@ namespace data_classification {
if (getRankInfo) {
colrank = *(reinterpret_cast<long*>(ptr));
ptr += sizeof(long);
ptr += sizeof(int);
pair.rank = colrank;
}