[libdvdnav-devel] Resolve compiler warning (admap_entries should be unsigned int)

Diego Biurrun diego at biurrun.de
Fri Aug 15 15:49:53 CEST 2014


On 2014-08-15 05:01, gnosygnu wrote:
> libdvdnav | branch: master | gnosygnu <gnosygnu at gmail.com> | Thu Aug 14 23:01:42 2014 -0400| [7c10f2243c136eb7dfd67e35329b02331726de43] | committer: gnosygnu
>
> Resolve compiler warning (admap_entries should be unsigned int)

Hmm, here it is unsigned int ..

> --- a/src/searching.c
> +++ b/src/searching.c
> @@ -74,7 +74,7 @@ static dvdnav_status_t dvdnav_scan_admap(dvdnav_t *this, int32_t domain, uint32_
>     if(admap) {
>       uint32_t address = 0;
>       uint32_t vobu_start, next_vobu = 0;
> -    int admap_entries = (admap->last_byte + 1 - VOBU_ADMAP_SIZE)/VOBU_ADMAP_SIZE;
> +    uint32_t admap_entries = (admap->last_byte + 1 - VOBU_ADMAP_SIZE)/VOBU_ADMAP_SIZE;

.. and here it is uint32_t.

Diego


More information about the libdvdnav-devel mailing list