aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2022-03-28 16:06:47 +0900
committerNIIBE Yutaka <[email protected]>2022-03-28 16:06:47 +0900
commite24fe678656156502bd3ef1b7805cddede1dd2de (patch)
tree8fb1ea3b8d5dab139fc94737dcef08409944595f
parent951b7d987cdb2d68a597aaea141f0c4628d0a43e (diff)
downloadlibgcrypt-e24fe678656156502bd3ef1b7805cddede1dd2de.tar.gz
libgcrypt-e24fe678656156502bd3ef1b7805cddede1dd2de.tar.bz2
libgcrypt-e24fe678656156502bd3ef1b7805cddede1dd2de.zip
test: Fix cast for Windows 64-bit.
* tests/bench-slope.c (slope_benchmark): Use uintptr_t. -- Fixes-commit: 1517a31ea476b76f67289d07e2c2821aa4ef83ef Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r--tests/bench-slope.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bench-slope.c b/tests/bench-slope.c
index 945df058..cd69a79c 100644
--- a/tests/bench-slope.c
+++ b/tests/bench-slope.c
@@ -467,7 +467,7 @@ slope_benchmark (struct bench_obj *obj)
goto err_free;
/* Get aligned buffer */
buffer = real_buffer;
- buffer += 128 - ((unsigned long)real_buffer & (128 - 1));
+ buffer += 128 - ((uintptr_t)real_buffer & (128 - 1));
if (unaligned_mode)
buffer += unaligned_mode; /* Make buffer unaligned */