[vorbis-dev] MSVC warnings

Segher Boessenkool segher at chello.nl
Sat Jan 5 18:25:45 PST 2002



Dimitry Andric wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 2002-01-06 at 02:47:36 Segher Boessenkool wrote:
> 
> SB> What's a "4244"?
> 
> 'conversion' conversion from 'type1' to 'type2', possible loss of data
> 
> With vorbis, these are mostly complaints about float->int
> conversions, etc.

Great!  gcc won't tell me about int->float and float->int conversions.
Can you compile a list for me?  Thanks :-)

> 
> >>     ret=-1UL;
> 
> SB> If you know a better *portable* way of generating a "negative" unsigned
> SB> number, please tell :-)
> 
> Maybe just
> 
>     ret = (unsigned long) -1L;
> 
> ? At least it would eliminate the warning.

Nope, it warns here.  Too bad.

<p>~0UL works(*), but that's maybe a little too hard too read for most
folks :-(

<p>Segher

<p>(*) portably!

<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