Cast integers to suppress warnings