Skip to content
  • Linus Torvalds's avatar
    Fix a copy-n-paste bug in the object decorator code. · 2a1a3dce
    Linus Torvalds authored
    
    
    Duh.
    
    When I did the object decorator thing, I made the "loop over the hash"
    function use the same logic for updating the hash, ie made them use
    
    	if (++j >= size)
    		j = 0;
    
    for both the hash update for both "insert" and "lookup"
    
    HOWEVER.
    
    For some inexplicable reason I had an extraneous
    
    	j++;
    
    in the insert path (probably just from the fact that the old code there
    used
    
    	j++;
    	if (j >= size)
    		j = 0;
    
    and when I made them use the same logic I just didn't remove the old
    extraneous line properly.
    
    This fixes it.
    
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarJunio C Hamano <junkio@cox.net>
    2a1a3dce