Fix warning about missmatch of uint32_t and size_t.