mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Normalizing argument types of CEarthAngle comparison and arithmetic operators:
argument type should be same type as the this pointer.
This commit is contained in:
@@ -94,7 +94,7 @@ namespace BlackMisc
|
||||
*/
|
||||
template <class LATorLON> int CEarthAngle<LATorLON>::compareImpl(const CValueObject &otherBase) const
|
||||
{
|
||||
const auto &other = static_cast<const LATorLON &>(otherBase);
|
||||
const auto &other = static_cast<const CEarthAngle &>(otherBase);
|
||||
|
||||
if (*this < other) { return -1; }
|
||||
else if (*this > other) { return 1; }
|
||||
|
||||
Reference in New Issue
Block a user