Fix size_t to uint32_t conversion warning