summaryrefslogtreecommitdiff
path: root/lib/libdrm/amdgpu/amdgpu_bo.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdrm/amdgpu/amdgpu_bo.c')
-rw-r--r--lib/libdrm/amdgpu/amdgpu_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libdrm/amdgpu/amdgpu_bo.c b/lib/libdrm/amdgpu/amdgpu_bo.c
index f4e043525..672f000d6 100644
--- a/lib/libdrm/amdgpu/amdgpu_bo.c
+++ b/lib/libdrm/amdgpu/amdgpu_bo.c
@@ -551,7 +551,7 @@ drm_public int amdgpu_find_bo_by_cpu_mapping(amdgpu_device_handle dev,
if (!bo || !bo->cpu_ptr || size > bo->alloc_size)
continue;
if (cpu >= bo->cpu_ptr &&
- cpu < (void*)((uintptr_t)bo->cpu_ptr + bo->alloc_size))
+ cpu < (void*)((uintptr_t)bo->cpu_ptr + (size_t)bo->alloc_size))
break;
}