fix warnings introduced in 3b20d41a92db4267c0ba13278f3885aba67e6c47 related to size_t/int comparison #1201