From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14279 invoked by alias); 3 Sep 2012 14:40:52 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30651 Received: (qmail 8522 invoked from network); 3 Sep 2012 14:40:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.210.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=3V1EL/TBFhfxQEm6pi3w3p9wgp7D+MWW31wb08W0kQk=; b=Yp7J1myx76DchiPgz8XnSMshHA5kLo2G9Olfb6r53OP+W35CD1wC+VmlERrobm1wnV QlctkcaowH15bhIbPByarnOqgxRYGAnOOXb2iYmFuIEaXY+B/50L7Xw1zVKkmjbAGmfK L/wKJquxfNaqk1vV+6Cb2EEIr1Fx4ZOhVgqInRIxSwaDwbV3vhMWCc3OHG9nq8ovxRap wVB2RSS6BceGNsF619C+xbfslIYtSuWxzyWHassXx/PcDEEspKO3cFRNZWF5uYjWBCqM dRtWKSYoC1PUo2nlN7py1Z9Mk5xqa3+jbsIzBBJtZnq4SeiecqRMbhQePLd665Pz7DVm I90A== MIME-Version: 1.0 In-Reply-To: References: Date: Mon, 3 Sep 2012 16:40:37 +0200 Message-ID: Subject: Re: PATCH: prevent SIGFPE on systems where LONG_MIN < -LONG_MAX From: Mikael Magnusson To: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable See also this thread, http://www.zsh.org/mla/workers/2011/msg00613.html On 03/09/2012, J=C3=A9r=C3=A9mie Roquet wrote: > Hello, > > $ echo $[ - 2**63 / -1 ] > zsh: floating point exception ./Src/zsh > > $ echo $[ - 2**63 % -1 ] > zsh: floating point exception ./Src/zsh > > The attached patch fixes this.