From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Subtle error defining VALMASK? Date: Wed, 10 Sep 2014 19:30:44 +0400 Message-ID: <54106EA4.9000405@yandex.ru> References: <541058E7.2000700@yandex.ru> <54106715.4010005@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410363085 26429 80.91.229.3 (10 Sep 2014 15:31:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2014 15:31:25 +0000 (UTC) Cc: Stefan Monnier , Emacs development discussions To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 10 17:31:18 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XRjrZ-0006sl-N3 for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 17:31:17 +0200 Original-Received: from localhost ([::1]:56972 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRjrZ-0000fr-AL for ged-emacs-devel@m.gmane.org; Wed, 10 Sep 2014 11:31:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRjrF-0000dN-Ar for emacs-devel@gnu.org; Wed, 10 Sep 2014 11:31:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRjr8-0003WY-1O for emacs-devel@gnu.org; Wed, 10 Sep 2014 11:30:57 -0400 Original-Received: from forward2l.mail.yandex.net ([2a02:6b8:0:1819::2]:47323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRjr7-0003WN-8m for emacs-devel@gnu.org; Wed, 10 Sep 2014 11:30:49 -0400 Original-Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [37.140.190.29]) by forward2l.mail.yandex.net (Yandex) with ESMTP id CFB121AC0E32; Wed, 10 Sep 2014 19:30:45 +0400 (MSK) Original-Received: from smtp4o.mail.yandex.net (localhost [127.0.0.1]) by smtp4o.mail.yandex.net (Yandex) with ESMTP id 492892322A5B; Wed, 10 Sep 2014 19:30:45 +0400 (MSK) Original-Received: from unknown (unknown [37.139.80.10]) by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id M3EFZFy7LK-Ui8O0GiM; Wed, 10 Sep 2014 19:30:44 +0400 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 49ad5246-f682-412a-8d73-befd9004c64b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1410363044; bh=frYK960D5wKhQm0Ezk927WuKQOinfL7bx0/trZCrqmc=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=PruiwwhWzI2HPWPk4tftTj9MYBdTm7BslHeqTV7JSrvDjd1v13MBrkGFPW9y19/ao YyVAENcYWDsJlt/YD7vIzGcKlkkrUnrMsEs2WLpS6rGh5tQioLWOuIAAOrIntiL9fU Ds8A3v3MWoF1W7tsz8x9yCtdLkU/bo6z5gg005ag= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.0 In-Reply-To: <54106715.4010005@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a02:6b8:0:1819::2 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174152 Archived-At: On 09/10/2014 06:58 PM, Paul Eggert wrote: > There's no error here. All three definitions are equivalent because - = (1 << GCTYPEBITS) equals -8, > which sign-extends to the width of VAL_MAX. fprintf (stderr, "0x%lx 0x%lx\n", VALMASK, VAL_MAX); =3D=3D> =2E./../trunk/src/alloc.c: In function =E2=80=98init_alloc=E2=80=99: =2E./../trunk/src/alloc.c:7240:3: error: format =E2=80=98%lx=E2=80=99 exp= ects argument of type =E2=80=98long unsigned int=E2=80=99, but argument 3= has type =E2=80=98int=E2=80=99 [-Werror=3Dformat=3D] fprintf (stderr, "0x%lx 0x%lx\n", VALMASK, VAL_MAX); ^ cc1: all warnings being treated as errors ??? Dmitry