GNU bug report logs - #23111
25.0.92; logxor leading zero missed

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Fri, 25 Mar 2016 09:17:01 UTC

Severity: wishlist

Tags: notabug, wontfix

Found in version 25.0.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 23111 <at> debbugs.gnu.org
Subject: bug#23111: 25.0.92; logxor leading zero missed
Date: Fri, 25 Mar 2016 17:00:53 +0100
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> (logxor 110 011) ==> 101 ; right
> (logxor 110 101) ==> 11  ; leading zero is missed

I think this is expected: logxor returns an integer, and "11" and "011"
are just different printed representations for the same number: 11.  The
lisp printer can't know that in this special case, it would make sense
to print 11 differently.  Even if it did, this wouldn't make any
difference for coding anyway.


Michael.




This bug report was last modified 9 years and 61 days ago.

Previous Next


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