emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange 32bit-ism


From: David Kastrup
Subject: Strange 32bit-ism
Date: Mon, 28 Aug 2006 11:41:44 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Type
M-: most-negative-fixnum RET
and you get the output

-268435456 (#o36000000000, #xf0000000)

The unsigned numbers to the right don't make sense: they are 29-bit
numbers sign-extended to 32 bit.  The additional 3 bits have no roots
in Emacs integers but just are a shine-through from the underlying C
integers.  So this should be either

-268435456 (#o2000000000, #x10000000)

which has the disadvantage that it loosely implies leading zeros
because 29 is neither dividable by 3 or 4, or

-268435456 (#o-2000000000, #x-10000000)

In GNU Emacs 22.0.50.8 (i686-pc-linux-gnu, GTK+ Version 2.8.20)
 of 2006-08-28 on lola
X server distributor `The X.Org Foundation', version 11.0.70000000
configured using `configure '--prefix=/usr/local/emacs-21' '--with-gtk' 
'--without-toolkit-scroll-bars''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Help

Minor modes in effect:
  TeX-PDF-mode: t
  desktop-save-mode: t
  iswitchb-mode: t
  minibuffer-electric-default-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-decoding-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: identity
  view-mode: t

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

[Prev in Thread] Current Thread [Next in Thread]