[vlc-devel] [PATCH 4/4] vlc_arrays.h: vlc_dictionary_has_key: Use the correct index type
Steve Lhomme
robux4 at ycbcr.xyz
Thu Oct 22 09:53:02 CEST 2020
I see 3 other calls that also use int instead of uint64_t.
On 2020-10-22 9:49, Hugo Beauzée-Luyssen wrote:
> ---
> include/vlc_arrays.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/vlc_arrays.h b/include/vlc_arrays.h
> index b558422f93..6fde22d00b 100644
> --- a/include/vlc_arrays.h
> +++ b/include/vlc_arrays.h
> @@ -456,7 +456,7 @@ vlc_dictionary_has_key( const vlc_dictionary_t * p_dict, const char * psz_key )
> if( !p_dict->p_entries )
> return 0;
>
> - int i_pos = DictHash( psz_key, p_dict->i_size );
> + uint64_t i_pos = DictHash( psz_key, p_dict->i_size );
> const vlc_dictionary_entry_t * p_entry = p_dict->p_entries[i_pos];
> for( ; p_entry != NULL; p_entry = p_entry->p_next )
> {
> --
> 2.20.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list