GNU bug report logs - #5916
XFLOAT_DATA and signed zeroes

Previous Next

Package: emacs;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Fri, 9 Apr 2010 23:54:02 UTC

Severity: normal

Done: Ken Raeburn <raeburn <at> raeburn.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 5916 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Vincent Lefevre <vincent <at> vinc17.net>
Cc: 5916 <at> debbugs.gnu.org
Subject: Re: bug#5916: XFLOAT_DATA and signed zeroes
Date: Sat, 10 Apr 2010 11:20:33 -0400
>   lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.

> However, adding 0 has another side effect on floats: the 0 is
> converted into +0.0 (due to the addition with a double), so that
> a -0.0 is transformed into a +0.0.

I guess we could/should make this "+0" conditional on some debugging
option, since after all it's only needed to catch coding errors.


        Stefan




This bug report was last modified 15 years and 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.