formosatek/dotliquid — pull request #58 by samlii (2012-04-19 14:51:26+00:00)
Title: Fix IndexOutOfBounds Potential

The WeakTable uses GetHashCode and a modulus operation to find an index in the backing array.

If GetHashCode returns a negative number the modulus is negatvie therefore an IndexOutOfBoundsException occurs.

This fixes the problem.