• antirez's avatar
    Avoid undefined behavior in BITFIELD implementation. · 014bf804
    antirez authored
    Probably there is no compiler that will actaully break the code or raise
    a signal for unsigned -> signed overflowing conversion, still it was
    apparently possible to write it in a more correct way.
    
    All tests passing.
    014bf804
bitops.c 39.6 KB