Silence warnings double -> int