THRIFT-4513: fix bug in comparator introduced by e58f75d

This closes #1517
1 file changed