all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#32485: 27.0.50; Problem with zerop on 32-bit platforms
@ 2018-08-20 18:12 Ken Brown
  2018-08-20 18:46 ` Andy Moreton
  2018-08-21 20:54 ` Paul Eggert
  0 siblings, 2 replies; 5+ messages in thread
From: Ken Brown @ 2018-08-20 18:12 UTC (permalink / raw)
  To: 32485

Evaluating (zerop (lsh -1 32)) on 32-bit Cygwin yields

Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p 
-4294967296)

I realize that the fate of lsh is still being debated, but I think
there's a problem with zerop anyway, because directly evaluating (zerop
-4294967296) leads to the same error.

I encountered this problem because vc-hg-state-fast contains the
following:

          ;; We want to store 32-bit unsigned values in fixnums.
          (zerop (lsh -1 32))

Aside from the fact that this leads to an error, it may need to be
changed once a decision is made about lsh.



In GNU Emacs 27.0.50 (build 10, i686-pc-cygwin)
  of 2018-08-20 built on moufang
Repository revision: ecd7a9407711ebe24d7e07d4402a2d66754ee693






^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-08-21 20:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20 18:12 bug#32485: 27.0.50; Problem with zerop on 32-bit platforms Ken Brown
2018-08-20 18:46 ` Andy Moreton
2018-08-20 19:54   ` Ken Brown
2018-08-20 21:28     ` Andy Moreton
2018-08-21 20:54 ` Paul Eggert

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.