From patchwork Thu Apr 9 15:15:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Weimer X-Patchwork-Id: 459755 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id EE7A01402D8 for ; Fri, 10 Apr 2015 01:15:37 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass reason="1024-bit key; unprotected key" header.d=sourceware.org header.i=@sourceware.org header.b=ElqPyGB0; dkim-adsp=none (unprotected policy); dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type; q=dns; s=default; b=uJ9x7ZHsmU1597e7S/kyV0Va859aP uA8evjiV+Gt+oHfof+nUilntKqSMrlg/IZXnEW4xt2hVYJazPv5HfCQvSBbnYUcr i6n1e/JA4fAdH8fXJJeG8XePNVAb7/jdZToub9TC9+TDFmrpzz0UKYnNi62Wwbx4 uCU6raQOAqYALw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type; s=default; bh=mznRnu1slzqwSPDsL1LFxKPVhug=; b=Elq PyGB0xjVnqdLEvatS2d3VRGtNn4WQ8t4nRB8Mw0gllwOSTnJE15ANDlulMejgL6x uvS9mPSMAScFIApuwfG9JZQ2KbjG+rzKfqcFLPUqoBAVixuRlge/db5n94O2iOgQ 7vpgRMimTZnXJ4rFP/IX9DiTjQvA+dxg28YueYf8= Received: (qmail 28928 invoked by alias); 9 Apr 2015 15:15:32 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 28913 invoked by uid 89); 9 Apr 2015 15:15:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Message-ID: <5526978F.60300@redhat.com> Date: Thu, 09 Apr 2015 17:15:27 +0200 From: Florian Weimer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: GNU C Library Subject: [PATCH Committed]: scratch_buffer: Suppress truncation warning on 32-bit Committed as obvious. From 2902af1631c0c74c2f0c0edd7a85a523370e5027 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 9 Apr 2015 17:12:42 +0200 Subject: [PATCH] scratch_buffer: Suppress truncation warning on 32-bit --- ChangeLog | 5 +++++ malloc/tst-scratch_buffer.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d84b3db..30dc4da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-04-09 Florian Weimer + + * malloc/tst-scratch_buffer.c (do_test): Suppress truncation + warning on 32-bit. + 2015-04-08 David S. Miller * sysdeps/sparc/fpu/libm-test-ulps: Update. diff --git a/malloc/tst-scratch_buffer.c b/malloc/tst-scratch_buffer.c index dcae512..614b9b8 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)) { -- 2.1.0