7 Feb
2007
7 Feb
'07
12:26 a.m.
On Mon, 2007-02-05 at 21:16 -0700, Richard wrote:
Why do this?
loadfile.c(625): fractinf_len = FRACTAL_INFO_SIZE + (FRACTAL_INFO_SIZE+254)/255;
Its almost like the intention is to round up to the next multiple of 255, but that would be this: 255*((FRACTAL_INFO_SIZE + 254)/255)
What's the purpose of this line? I'm not getting it.
I don't understand how you reached the conclusion that it would be 255*((FRACTAL_INFO_SIZE + 254)/255). Try using FRACTAL_INFO_SIZE = 1. The original line results in a value of 2, and your formula results in 255. Since the current value of FRACTAL_INFO_SIZE is 504 as defined in fractint.h, we appear to be getting fractinf_len = 506. I have no clue why we do this. Jonathan