File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -117,10 +117,10 @@ class RemoteAddress {
117
117
return RemoteAddress (Data - rhs, getAddressSpace ());
118
118
}
119
119
120
- RemoteAddress operator -(const RemoteAddress &rhs) const {
121
- if (AddressSpace != rhs.AddressSpace )
122
- return RemoteAddress ( );
123
- return RemoteAddress ( Data - rhs.Data , getAddressSpace ()) ;
120
+ uint64_t operator -(const RemoteAddress &rhs) const {
121
+ assert (AddressSpace == rhs.AddressSpace &&
122
+ " Comparing remote addresses of different address spaces " );
123
+ return Data - rhs.Data ;
124
124
}
125
125
126
126
template <typename IntegerType>
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class ReflectionSection {
77
77
RemoteRef<U> getRemoteRef (remote::RemoteAddress remoteAddr) const {
78
78
assert (containsRemoteAddress (remoteAddr, sizeof (U)));
79
79
auto localAddr = (uint64_t )(uintptr_t )Start.getLocalBuffer () +
80
- (remoteAddr - Start.getRemoteAddress ()). getRawAddress () ;
80
+ (remoteAddr - Start.getRemoteAddress ());
81
81
82
82
return RemoteRef<U>(remoteAddr, (const U *)localAddr);
83
83
}
You can’t perform that action at this time.
0 commit comments