Fix a type defaulting warning

(And a small matter of using != instead of /= -- how embarrassing!)