fix datatype mismatches
fix datatype mismatch warnings
fix datatype mismatch warning
fix assert, zero diff would be valid, too
fix datatype mismatches
fix datatype mismatches
fix datatype mismatch warning