On Wed, Dec 28, 2011 at 10:44 PM, Stephen J. Turnbull
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:
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
XEmacs-Patches mailing list