[vorbis-dev] MSVC warnings
Dave Hooper
dave at beermex.com
Sun Jan 6 15:34:17 PST 2002
> FWIW, on MSVC you can't cast away the warning.
You certainly can on MSVC97, using just
retval = (unsigned long)(-1)
but others have reported problems with different compilers
> I would strongly urge:
> #define OGG_OVERFLOW ~0UL
> and:
> ret = OGG_OVERFLOW;
#define is for macro programming, better to make it a const like
const unsigned long OGG_OVERFLOW = ~0;
or similar, for obvious reasons. Or if you must use #define, at least use
#define OGG_OVERFLOW (~0UL)
D
<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