summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-14 17:37:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-14 17:37:53 +0000
commitd4bb328b78b767b98c8a60ee2c1bd0d2cc894d67 (patch)
tree36f939dea512d2ad4aab5d99e3cb38770929e3f4 /tests
parentb4fb480c802c41dbb8061344a540752156113489 (diff)
tests/gem_largeobject: silence the compiler
gem_largeobject.c: In function ‘test_large_object’: gem_largeobject.c:95:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_largeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_largeobject.c b/tests/gem_largeobject.c
index f7973bdb..bf59c844 100644
--- a/tests/gem_largeobject.c
+++ b/tests/gem_largeobject.c
@@ -92,7 +92,7 @@ test_large_object(int fd)
pwrite.handle = create.handle;
pwrite.size = obj_size;
- pwrite.data_ptr = (uint64_t)data;
+ pwrite.data_ptr = (uintptr_t)data;
ret = ioctl(fd, DRM_IOCTL_I915_GEM_PWRITE, &pwrite);
if (ret) {