Cast sizeOffset to uintptr_t for ordered comparison
Issue report & fix by Dirk Zimoch.
This commit is contained in:
1 parent
a5c3330c8e
commit
9d393c4437
1 file changed
+2
-2
@@ -36,8 +36,8 @@ struct compareLoc {
|
||||
return true;
|
||||
if (lhs.prset > rhs.prset)
|
||||
return false;
|
||||
return reinterpret_cast<char *>(lhs.sizeOffset)
|
||||
< reinterpret_cast<char *>(rhs.sizeOffset);
|
||||
return reinterpret_cast<uintptr_t>(lhs.sizeOffset)
|
||||
< reinterpret_cast<uintptr_t>(rhs.sizeOffset);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user