mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
FSUIPC Clang fixes
This commit is contained in:
@@ -31,7 +31,7 @@ namespace BlackMisc
|
||||
quint32 CBcdConversions::transponderCodeToBcd(const BlackMisc::Aviation::CTransponder &transponder)
|
||||
{
|
||||
// FSX documentation is wrong, we need to use kHz + 2 digits, not Hz
|
||||
quint32 t = transponder.getTransponderCode();
|
||||
quint32 t = static_cast<quint32>(transponder.getTransponderCode());
|
||||
t = dec2Bcd(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,9 @@ namespace BlackMisc
|
||||
class BLACKMISC_EXPORT CBcdConversions
|
||||
{
|
||||
public:
|
||||
//! BCD -> decimal
|
||||
static quint32 bcd2Dec(qint32 bcdNum) { return bcd2Dec(static_cast<quint32>(bcdNum)); }
|
||||
|
||||
//! BCD -> decimal
|
||||
static quint32 bcd2Dec(quint32 bcdNum) { return hornerScheme(bcdNum, 0x10, 10); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user