summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-10 12:00:38 +0100
committerErik Faye-Lund <erik.faye-lund@collabora.com>2023-03-13 08:51:57 +0100
commitcfdfde19a88d4a5a03de1c32ab586d74a2448c1b (patch)
tree362285d584a22f954f76a42b08b1af4f3d5d11e2
parent08f1bcc84603067c75ae5b6d7fb02e2c62672000 (diff)
downloadmesa-demos-cfdfde19a88d4a5a03de1c32ab586d74a2448c1b.tar.gz
tests/texdown: cast pointer to uintptr_t
This avoids a compiler-warning on MSVC. Reviewed-by: Hoe Hao Cheng <haochengho12907@gmail.com>
-rw-r--r--src/tests/texdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/texdown.c b/src/tests/texdown.c
index cd50fe10..c7a3620b 100644
--- a/src/tests/texdown.c
+++ b/src/tests/texdown.c
@@ -184,7 +184,7 @@ MeasureDownloadRate(void)
printf("alloc %p\n", texImage);
- for (i = 1; !(((unsigned long)texImage) & i); i<<=1)
+ for (i = 1; !(((uintptr_t)texImage) & i); i<<=1)
;
printf("texture image alignment: %d bytes (%p)\n", i, texImage);