On Wed, Dec 28, 2011 at 10:44 PM, Stephen J. Turnbull
<stephen(a)xemacs.org> wrote:
Does this ever actually happen? (Just curious.) I thought in C the
RHS of the shift operator will be an int, so the LHS will get promoted
to int if it was char or short. When do we make_fixnum on anything big
enough to overflow on a one bit shift? That sounds like a bug in
itself to me.
Yes, it actually happened. See the link I posted with the patch:
http://list-archive.xemacs.org/pipermail/xemacs-beta/2011-August/021780.html
That broke the XFT build on 64-bit platforms. I guess my
characterization of the bug was a bit off (get it?). The real problem
is a one bit being shifted into the sign bit position, thereby turning
a positive number into a negative number.
--
Jerry James, who is now going to eat lunch for a bit
http://www.jamezone.org/
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches