fix ballot compare
fix compare on 32bit arch
Merge pull request #24 from fengjingchao/dev

fix ballot compare