From 9fe21fcd8883b37bdc30224822e6e42afb35b8f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Feb 2016 16:18:13 +0300 Subject: Replace most static_cast to shorter versions from defines. --- src/input/inputactionsortfunctor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/input/inputactionsortfunctor.h') diff --git a/src/input/inputactionsortfunctor.h b/src/input/inputactionsortfunctor.h index 334185977..6a3a72245 100644 --- a/src/input/inputactionsortfunctor.h +++ b/src/input/inputactionsortfunctor.h @@ -31,8 +31,8 @@ class InputActionSortFunctor final bool operator() (const InputActionT key1, const InputActionT key2) const { - return keys[static_cast(key1)].priority - >= keys[static_cast(key2)].priority; + return keys[CAST_SIZE(key1)].priority + >= keys[CAST_SIZE(key2)].priority; } const InputActionData *keys A_NONNULLPOINTER; -- cgit v1.2.3-60-g2f50