OH, I forgot. There is another error. There is:
tuplerow[row][column][sample];
and that should be:
tuplerow[column][sample];
On Sun, Feb 20, 2005 at 01:23:57AM +0100, Llu�s Batlle i Rossell wrote:
> Hi!
> In the manpage of "libpnm", there is an example of its usage. But there is an
> error in it. Here is a triple 'for' from the example:
>
> for (row = 0; row < inpam.height; row++) {
> pnm_readpamrow(&inpam, tuplerow);
> for (column = 0; column < inpam.width; column++) {
> for (sample = 0; sample < inpam.depth; column++) {
> grand_total += tuplerow[row][column][sample];
> }
> }
> pnm_writepamrow(&outpam, tuplerow); }
>
>
> It's obvious that there must be a "sample++" in the third 'for'. Who should I
> report this to?
>
>
> --
> In its laws, society makes its mightiest collective effort to impose
> predictability upon human behavior.
> - S. I. Hayakawa, "Language in thought and action"
>
> --
> [email protected] mailing list
>
--
In its laws, society makes its mightiest collective effort to impose
predictability upon human behavior.
- S. I. Hayakawa, "Language in thought and action"
--
[email protected] mailing list