[Gridflow-cvs] [svn] commit: r6349 - /trunk/src/png.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Sep 24 14:20:26 EDT 2010


Author: matju
Date: Fri Sep 24 14:20:25 2010
New Revision: 6349

Log:
64-bit fix

Modified:
    trunk/src/png.cxx

Modified: trunk/src/png.cxx
==============================================================================
--- trunk/src/png.cxx (original)
+++ trunk/src/png.cxx Fri Sep 24 14:20:25 2010
@@ -114,7 +114,7 @@
 	//	color_type, channels, width, rowbytes, height, gamma);
 	for (int i=0; i<(int)height; i++) row_pointers[i] = image_data + i*rowbytes;
 	if ((uint32)rowbytes != width*channels)
-		RAISE("rowbytes mismatch: %d is not %d*%d=%d", rowbytes, width, channels, width*channels);
+		RAISE("rowbytes mismatch: %d is not %d*%d=%d", rowbytes, int(width), channels, int(width*channels));
 	png_read_image(png, row_pointers);
 	delete[] row_pointers;
 	row_pointers = 0;



More information about the Gridflow-cvs mailing list