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:
parent
86adf470cb
commit
0735c06f05
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue