[vorbis-dev] Error in Scales.h

Segher Boessenkool segher at wanadoo.nl
Fri Dec 22 11:23:25 PST 2000

Lars Brubaker 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))

What's the difference?

> The f is causing a compiler error "syntax error : 'bad suffix on number'"

What compiler? The f suffix has been in the C standard for so very long
now that only an archeologist can tell when it appeared.

Oh, it looks like your preprocessor doen't know about the suffix. That
is a bug.



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