Remove undefined left-shift on negative value from regex.c.
Replace with a bitwise-or of the byte 1, byte 22, and a mask to extend the sign bit. Change the dest parameter type to unsigned int just to make sure the compiler doesn't do anything tricky or get offended somehow. See #89.
Showing with 16 additions and 28 deletions