[opengtl-commits] [556] cast from std::size_t to int

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 556
Author:   cyrille
Date:     2008-12-28 20:37:19 +0100 (Sun, 28 Dec 2008)

Log Message:
-----------
cast from std::size_t to int

Modified Paths:
--------------
    trunk/OpenGTL/Extensions/PngDC/PngDC.cpp


Modified: trunk/OpenGTL/Extensions/PngDC/PngDC.cpp
===================================================================
--- trunk/OpenGTL/Extensions/PngDC/PngDC.cpp	2008-12-20 10:55:02 UTC (rev 555)
+++ trunk/OpenGTL/Extensions/PngDC/PngDC.cpp	2008-12-28 19:37:19 UTC (rev 556)
@@ -230,7 +230,7 @@
     default:
       png_destroy_write_struct(&png_ptr, &info_ptr);
       fclose(fp);
-      TELL_ERROR( "Unsupported number of channels: " + GTLCore::String::number( _image->pixelDescription().channels() ) );
+      TELL_ERROR( "Unsupported number of channels: " + GTLCore::String::number( int(_image->pixelDescription().channels() ) ) );
   }
   // Set information
   png_set_IHDR( png_ptr, info_ptr, _region.width(), _region.height()


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/