Guys:

    I found that in 1.3 the viewer would sometimes report that the image
size was too large, even tho it really wasn't. I tracked it down to line
442 in image.c:
    reqMem      = imageWidth * imageHeight * pixelDepth;
Gcc makes the type of the result the largest of the members (in this case
Coord which is Int16). When the result was a negative number, gcc whould
promote to a huge UInt32 and trigger the error.
it should be:
    reqMem = (UInt32) imageWidth * (UInt32) imageHeight * (UInt32) pixelDepth;

Christopher R. Hawks
HAWKSoft
-------------------------------------------------------------------------
guru, n:
        A computer owner who can read the manual.





_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to