• Binbin's avatar
    Fix LREM count LONG_MIN overflow minor issue (#12465) · c98a28a8
    Binbin authored
    Limit the range of LREM count to -LONG_MAX ~ LONG_MAX.
    Before the fix, passing -LONG_MAX would cause an overflow
    and would effectively be the same as passing 0. (Because
    this condition `toremove && removed == toremove `can never
    be satisfied).
    
    This is a minor fix as it shouldn't really affect users,
    more like a cleanup.
    c98a28a8
t_list.c 48.8 KB