From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61973 invoked by alias); 9 Aug 2018 18:17:14 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 61962 invoked by uid 89); 9 Aug 2018 18:17:13 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: gateway32.websitewelcome.com Received: from gateway32.websitewelcome.com (HELO gateway32.websitewelcome.com) (192.185.145.114) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 09 Aug 2018 18:17:11 +0000 Received: from cm15.websitewelcome.com (cm15.websitewelcome.com [100.42.49.9]) by gateway32.websitewelcome.com (Postfix) with ESMTP id 6596B35CDF for ; Thu, 9 Aug 2018 13:17:09 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id npUYf9YA6bXuJnpUefYIUT; Thu, 09 Aug 2018 13:17:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+x/WG+0AjSHZAM5sfwQjorYkeP7jOqlKN1C1h210lew=; b=xdbWCKsoJM1LTng2yTUnxwg+r6 zDKcKvT539qWmpfqzItv7Fxicl/zPVmTTz1THjAd8vpU5k7fNV4VJoZOB8HszSEkF/87efDcHLYiy AkbnJQk12nHvBsOREzS9bvwKp; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:33884 helo=pokyo) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fnpUX-002B1Y-RJ; Thu, 09 Aug 2018 13:16:57 -0500 From: Tom Tromey To: Pedro Alves Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH 3/7] Avoid -Wnarrowing warnings in struct tramp_frame instances References: <20180808232016.12777-1-tom@tromey.com> <20180808232016.12777-4-tom@tromey.com> <1dc16fd5-381b-fa3e-184f-1a54aac01529@redhat.com> Date: Thu, 09 Aug 2018 18:17:00 -0000 In-Reply-To: <1dc16fd5-381b-fa3e-184f-1a54aac01529@redhat.com> (Pedro Alves's message of "Thu, 9 Aug 2018 19:08:39 +0100") Message-ID: <87r2j776cm.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-08/txt/msg00228.txt.bz2 >>>>> "Pedro" == Pedro Alves writes: Pedro> On 08/09/2018 12:20 AM, Tom Tromey wrote: >> --- a/gdb/common/common-types.h >> +++ b/gdb/common/common-types.h >> @@ -58,6 +58,9 @@ typedef unsigned long long ULONGEST; >> /* * The largest CORE_ADDR value. */ >> #define CORE_ADDR_MAX (~ (CORE_ADDR) 0) >> >> +/* * The largest ULONGEST value. */ >> +#define ULONGEST_MAX (~ (ULONGEST) 0) Pedro> With '~' being a unary operator, the right format would be: Pedro> #define ULONGEST_MAX (~(ULONGEST) 0) Pedro> But I see that CORE_ADDR_MAX has the same issue... I'll just fix them both in the next revision. Tom