--- Denis Chatelain <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> 
> I just tried to compile libFLAC (using Borland C++ Builder 6 on
> Windows).
> 
> The compilers yells at me on line 233 of libFLAC/lpc.c
> 
> *(residual++) = *(data++) - (sum >> lp_quantization);
> --> data is const and cannot be modified
> 
> Funny thing is, if data is declared:
>    const FLAC__int32 *data
> instead of
>    const FLAC__int32 data[]
> 
> everything is ok.
> 
> Is this a bug in my compiler, or a personnal lack of understanding of
> the difference in C between *data and data[] ?

hmmm, not sure what the standard says on this.  but it's
OK to change it to

const FLAC__int32 *data

in order to get it to compile.

Josh


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Flac-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/flac-dev

Reply via email to