Skip to content

Commit

Permalink
Fix loss of precision warning in signalmonitor.cpp.
Browse files Browse the repository at this point in the history
Casting from a pointer to a "long" is only valid if they contain the
same number of bits.  Instead use the uintptr_t type, which is an
integer type that is guaranteed to have the same number of bits as a
pointer.
  • Loading branch information
linuxdude42 committed Mar 27, 2023
1 parent 2aa9375 commit 9df365e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/recorders/signalmonitor.cpp
Expand Up @@ -217,7 +217,7 @@ SignalMonitor *SignalMonitor::Init(const QString& cardtype, int db_cardnum,
{
LOG(VB_GENERAL, LOG_ERR,
QString("Failed to create signal monitor in Init(%1, %2, 0x%3)")
.arg(cardtype).arg(db_cardnum).arg((long)channel,0,16));
.arg(cardtype).arg(db_cardnum).arg((uintptr_t)channel,0,16));
}

return signalMonitor;
Expand Down

0 comments on commit 9df365e

Please sign in to comment.