Fix enum-compare warning

Explicitly cast enum type to int for value comparison.

Bug: 72330874
Test: m checkbuild
Change-Id: Ic0403fbb525c47a19c7d788686857f60ffb89990
Merged-In: Ic0403fbb525c47a19c7d788686857f60ffb89990
(cherry picked from commit 2fe2a082cd1a99e3f83b55630dad4297a1119b3a)
(cherry picked from commit 65ecbd028c4911e3071f8e1249152660b012d053)
1 file changed