Fix mixed double-integer math