Fix cast to enum 94/172894/2
authorMichal Bloch <m.bloch@samsung.com>
Fri, 16 Mar 2018 13:48:10 +0000 (14:48 +0100)
committerMichal Bloch <m.bloch@samsung.com>
Mon, 19 Mar 2018 12:43:26 +0000 (13:43 +0100)
commit16507fff3b3f8681aed1864de59766b9e69a3716
treef0c940a1a9bc77f12cd4b2993bd7d394fd8aa308
parent4634037472cf1ad0862e6f658969cd854439d19e
Fix cast to enum

Checks against values outside the enum range are legal for the compiler
to optimize out, ergo they have to be done before the cast.

Change-Id: I3059b3a16e6331c3a3a1389f0a4acfbae1d3a16f
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
src/shared/logprint.c