diff options
-rw-r--r-- | src/libhomescreen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libhomescreen.cpp b/src/libhomescreen.cpp index 24487e8..b5a534d 100644 --- a/src/libhomescreen.cpp +++ b/src/libhomescreen.cpp @@ -759,7 +759,7 @@ int LibHomeScreen::getEventType(const char *event) break; } } - return (i + 1) < Event_Max ? i : Event_Max; + return (i + 1) < Event_Max ? (i + 1) : Event_Max; } static bool has_verb(const string& verb) |