[vorbis-dev] MSVC warnings

Segher Boessenkool segher at chello.nl
Sat Jan 5 19:21:37 PST 2002



Brian Hook wrote:
> 
> At 03:25 AM 1/6/2002 +0100, you wrote:
> >Great!  gcc won't tell me about int->float and float->int conversions.
> >Can you compile a list for me?  Thanks :-)
> 
> I can send you the output with warnings if you'd like privately.  I'll do
> that the next time I'm at work.

Yes please, thanks.

> 
> >~0UL works(*), but that's maybe a little too hard too read for most
> >folks :-(
> 
> I would suggest this approach is the better one, since at least it's
> relying on defined behaviour.  If you're worried about readability, I'd

-1UL is defined behaviour as well, although a bit weird.

> just use a manifest constant so that the intent is clear.

I might do that, yes.

<p>Segher

<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