From 2e4948e1f423d3cdac84425b3dda5de74775c1c5 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Tue, 12 Mar 2019 15:27:13 -0700 Subject: [PATCH] Fix `switch` nesting in handler_matches I guess this worked, but whoops. --- src/event.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/event.cpp b/src/event.cpp index d2ae1959a..9cab7d427 100644 --- a/src/event.cpp +++ b/src/event.cpp @@ -120,8 +120,8 @@ static bool handler_matches(const event_handler_t &classv, const event_t &instan case event_type_t::generic: { return classv.desc.str_param1 == instance.desc.str_param1; } - case event_type_t::any: { - default: + case event_type_t::any: + default: { DIE("unexpected classv.type"); return false; }