DId you verify if this code is correct?  When I suggested the change last week it was only after a couple minutes of thought and written off the top of my head, so it would be nice to ensure that the change has been tested and is correct.  Maybe also add a unittest if there isn't already one that verifies this code.