summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2020-05-20 15:26:29 +0200
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2020-05-22 09:11:47 +0200
commitdddd91eef326dbcdaec2a7fee6fa429d1cf6542a (patch)
treece38a3b84a63876d5b5404067414b1e93073262a
parent685e79a64bbd6ead6f21b21ec47f55e06a8ce624 (diff)
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: e3e704c7e7e ("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>
-rw-r--r--src/amd/addrlib/src/core/coord.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/addrlib/src/core/coord.cpp b/src/amd/addrlib/src/core/coord.cpp
index b46149e7f83..3cf066daa94 100644
--- a/src/amd/addrlib/src/core/coord.cpp
+++ b/src/amd/addrlib/src/core/coord.cpp
@@ -83,11 +83,11 @@ BOOL_32 Coordinate::operator<(const Coordinate& b)
}
else
{
- if (dim == 's' || b.dim == 'm')
+ if (dim == DIM_S || b.dim == DIM_M)
{
ret = TRUE;
}
- else if (b.dim == 's' || dim == 'm')
+ else if (b.dim == DIM_S || dim == DIM_M)
{
ret = FALSE;
}