Skip to content

Commit

Permalink
Fix for negative RecStatus enum values
Browse files Browse the repository at this point in the history
RecStatus::Type does not work correctly when specified as int8_t or
int16_t. Negative values are not translated correctly. Fixed this by
changing RecStatus::Type back to plain enum with default type.
  • Loading branch information
bennettpeter committed Aug 3, 2024
1 parent 1fa849b commit 2e462d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythbase/recordingstatus.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class MBASE_PUBLIC RecStatus : public QObject
Q_OBJECT

public:
enum Type : std::int8_t {
enum Type {
Pending = -15,
Failing = -14,
//OtherRecording = -13, (obsolete)
Expand Down

0 comments on commit 2e462d7

Please sign in to comment.