]> sourceware.org Git - glibc.git/commitdiff
scratch_buffer: Suppress truncation warning on 32-bit
authorFlorian Weimer <fweimer@redhat.com>
Thu, 9 Apr 2015 15:12:42 +0000 (17:12 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 9 Apr 2015 15:12:42 +0000 (17:12 +0200)
ChangeLog
malloc/tst-scratch_buffer.c

index d84b3dba6bd4bf27eb13f849e95985946c1dd935..30dc4dabdc2b633011e0b891a7f05cf7d1073dae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-04-09  Florian Weimer  <fweimer@redhat.com>
+
+       * malloc/tst-scratch_buffer.c (do_test): Suppress truncation
+       warning on 32-bit.
+
 2015-04-08  David S. Miller  <davem@davemloft.net>
 
        * sysdeps/sparc/fpu/libm-test-ulps: Update.
index dcae5120dd0b102374b4bb65478aa7f6419416e6..614b9b831e7629c47b869cf4631f4a290408a9e7 100644 (file)
@@ -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))
          {
This page took 0.127475 seconds and 5 git commands to generate.