• Alon Diamant's avatar
    Fix: case when SPOP with count>MAXINT, setTypeRandomElements() will get... · 3c8a7558
    Alon Diamant authored
    Fix: case when SPOP with count>MAXINT, setTypeRandomElements() will get negative count argument due to signed/unsigned mismatch.
    
    setTypeRandomElements() now returns unsigned long, and also uses unsigned long for anything related to count of members.
    spopWithCountCommand() now uses unsigned long elements_returned instead of int, for values returned from setTypeRandomElements()
    3c8a7558
t_set.c 39.6 KB