Commit 36ebdd36 authored by Adam Jackson's avatar Adam Jackson 🎧 Committed by Daniel Stone
Browse files

linux: warning fix

lnx_agp.c: In function ‘xf86DeallocateGARTMemory’:
lnx_agp.c:267: warning: cast to pointer from integer of different size
Signed-off-by: Adam Jackson's avatarAdam Jackson <>
Reviewed-by: Daniel Stone's avatarDaniel Stone <>
parent 63ccaec2
......@@ -264,7 +264,7 @@ xf86DeallocateGARTMemory(int screenNum, int key)
#ifdef __linux__
if (ioctl(gartFd, AGPIOC_DEALLOCATE, (int *)key) != 0) {
if (ioctl(gartFd, AGPIOC_DEALLOCATE, (int *)(uintptr_t)key) != 0) {
if (ioctl(gartFd, AGPIOC_DEALLOCATE, &key) != 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment