Ozkan Sezer
2017-Jan-14 07:10 UTC
[flac-dev] unsigned int and FLAC__uint32 are used interchangeably
On 1/14/17, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:> Ozkan Sezer wrote: > >> unsigned int and FLAC__uint32 are used interchangeably, leading to >> warnings with platforms (e.g. djgpp) where int32_t is long: > > Is `sizeof int == 4` though?Yes, obviously it is> I couldn't image FLAC working correctly > if it wasn't. > > Erik
Erik de Castro Lopo
2017-Jan-14 07:19 UTC
[flac-dev] unsigned int and FLAC__uint32 are used interchangeably
Ozkan Sezer wrote:> > Ozkan Sezer wrote: > > > >> unsigned int and FLAC__uint32 are used interchangeably, leading to > >> warnings with platforms (e.g. djgpp) where int32_t is long: > > > > Is `sizeof int == 4` though? > > Yes, obviously it isWell I've just pushed a patch that purges the code base of `unsigned`. Please test and let us know how it goes. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Ozkan Sezer
2017-Jan-14 08:10 UTC
[flac-dev] unsigned int and FLAC__uint32 are used interchangeably
On 1/14/17, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:> Ozkan Sezer wrote: > >> > Ozkan Sezer wrote: >> > >> >> unsigned int and FLAC__uint32 are used interchangeably, leading to >> >> warnings with platforms (e.g. djgpp) where int32_t is long: >> > >> > Is `sizeof int == 4` though? >> >> Yes, obviously it is > > Well I've just pushed a patch that purges the code base of `unsigned`. > Please test and let us know how it goes.Well, the commit seems like overkill :) not all the unsigned needed converting. And build fails : format.c:53: error: conflicting types for 'FLAC__STREAM_SYNC' ../../include/FLAC/format.h:176: error: previous declaration of 'FLAC__STREAM_SYNC' was here [many others follow]
Possibly Parallel Threads
- unsigned int and FLAC__uint32 are used interchangeably
- unsigned int and FLAC__uint32 are used interchangeably
- unsigned int and FLAC__uint32 are used interchangeably
- unsigned int and FLAC__uint32 are used interchangeably
- unsigned int and FLAC__uint32 are used interchangeably