avoid std::min
This commit is contained in:
1 parent
7b301c4c98
commit
161280220e
1 file changed
+2
-1
@@ -363,7 +363,8 @@ public:
|
||||
}
|
||||
|
||||
virtual epics::pvData::int8 getRevision() const OVERRIDE FINAL {
|
||||
return std::min(PVA_PROTOCOL_REVISION, _remoteTransportRevision);
|
||||
return PVA_PROTOCOL_REVISION < _remoteTransportRevision
|
||||
? PVA_PROTOCOL_REVISION : _remoteTransportRevision;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user