amd/addrlib: fix forgotten char -> enum conversions

clang warning:
  result of comparison of constant 115 with expression of type
  'const enum Dim' is always false

Fixes: e3e704c7e7 ("amd/addrlib: Use enum instead of sparse chars to identify dimensions")
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5119>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2020-05-20 15:26:29 +02:00
parent 685e79a64b
commit dddd91eef3

View file

@ -83,11 +83,11 @@ BOOL_32 Coordinate::operator<(const Coordinate& b)
} }
else else
{ {
if (dim == 's' || b.dim == 'm') if (dim == DIM_S || b.dim == DIM_M)
{ {
ret = TRUE; ret = TRUE;
} }
else if (b.dim == 's' || dim == 'm') else if (b.dim == DIM_S || dim == DIM_M)
{ {
ret = FALSE; ret = FALSE;
} }