[vorbis-dev] Error in Scales.h

Michael Smith msmith at labyrinth.net.au
Sun Dec 24 17:39:12 PST 2000



At 09:29 AM 12/22/00 -0800, you wrote:
>Some errors compiling vorbis_dynamic
>
>Line 40 of Scales.h
>was
>#define toBARK(f)
>(13.1f*atan(.00074f*(f))+2.24f*atan((f)*(f)*1.85e-8f)+1e-4f*(f))
>Should be
>#define toBARK(n)
>(13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))
<snip>
>The f is causing a compiler error "syntax error : 'bad suffix on number'"
>

This is due to a weird and pretty major bug in MSVC. At least it looks that way from my reading of the relevent bits of the standard.
I've committed a workaround. 

Is this bug still present in MSVC6? It certainly causes problems here (I have a copy of version 5). If so, is there any useful way to submit real bug reports to microsoft?

Michael

--- >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