use long math for long values
Merge branch 'cassandra-1.1' into cassandra-1.2