[vorbis-dev] MSVC warnings

Brian Hook brianhook at pyrogon.com
Sun Jan 6 15:13:15 PST 2002



> > >     ret=-1UL;
> >
> >If you know a better *portable* way of generating a 
> "negative" unsigned 
> >number, please tell :-)
> 
> Well, you can cast it to get rid of the problem...

FWIW, on MSVC you can't cast away the warning.  I would strongly urge:

#define OGG_OVERFLOW ~0UL

and:

ret = OGG_OVERFLOW;

JMHO =)

Brian

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list