bnoguchi/node-hash-ring — pull request #15 by cypreess (2012-12-11 23:23:53+00:00)
Title: Fixed compatibility with python-hash_ring==1.2

Submitted code is reported to be compatibile with this code: https://github.com/Doist/hash_ring

There was a problem of variable overflow with bit left shift made on small integer. I automatically replace all ``unsigned int`` to ``unsigned long int``, also in places where it was not really necessary, but I did just left it as it is, as it does not introduces any significant memory usage.

The second problem was in incorrect number of for-loop, which generates virtual nodes. Pythonic ``xrange(0,3)`` returns ``[0, 1, 2]`` which translates to ``for ( m=0; m < 3; m ++)``.