From 2902af1631c0c74c2f0c0edd7a85a523370e5027 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 9 Apr 2015 17:12:42 +0200 Subject: scratch_buffer: Suppress truncation warning on 32-bit --- malloc/tst-scratch_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'malloc') diff --git a/malloc/tst-scratch_buffer.c b/malloc/tst-scratch_buffer.c index dcae5120dd..614b9b831e 100644 --- a/malloc/tst-scratch_buffer.c +++ b/malloc/tst-scratch_buffer.c @@ -130,8 +130,8 @@ do_test (void) && unchanged_array_size (&buf, 0, -1) && unchanged_array_size (&buf, 1ULL << 16, 0) && unchanged_array_size (&buf, 0, 1ULL << 16) - && unchanged_array_size (&buf, 1ULL << 32, 0) - && unchanged_array_size (&buf, 0, 1ULL << 32))) + && unchanged_array_size (&buf, (size_t) (1ULL << 32), 0) + && unchanged_array_size (&buf, 0, (size_t) (1ULL << 32)))) return 1; if (!scratch_buffer_grow (&buf)) { -- cgit 1.4.1