Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84884 - in trunk/boost/gil/extension/io/formats: jpeg tiff
From: chhenning_at_[hidden]
Date: 2013-06-22 16:35:37


Author: chhenning
Date: 2013-06-22 16:35:36 EDT (Sat, 22 Jun 2013)
New Revision: 84884
URL: http://svn.boost.org/trac/boost/changeset/84884

Log:
Removing compiler warnings for x86 builds.

Text files modified:
   trunk/boost/gil/extension/io/formats/jpeg/reader_backend.hpp | 4 ++--
   trunk/boost/gil/extension/io/formats/tiff/reader_backend.hpp | 4 ++--
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/gil/extension/io/formats/jpeg/reader_backend.hpp
==============================================================================
--- trunk/boost/gil/extension/io/formats/jpeg/reader_backend.hpp Sat Jun 22 16:34:18 2013 (r84883)
+++ trunk/boost/gil/extension/io/formats/jpeg/reader_backend.hpp 2013-06-22 16:35:36 EDT (Sat, 22 Jun 2013) (r84884)
@@ -204,7 +204,7 @@
         }
         else
         {
- if( img_dim.x < _info._width ) { io_error( "Supplied image is too small" ); }
+ if( (jpeg_image_width::type) img_dim.x < _info._width ) { io_error( "Supplied image is too small" ); }
         }
 
 
@@ -214,7 +214,7 @@
         }
         else
         {
- if( img_dim.y < _info._height ) { io_error( "Supplied image is too small" ); }
+ if( (jpeg_image_height::type) img_dim.y < _info._height ) { io_error( "Supplied image is too small" ); }
         }
     }
 

Modified: trunk/boost/gil/extension/io/formats/tiff/reader_backend.hpp
==============================================================================
--- trunk/boost/gil/extension/io/formats/tiff/reader_backend.hpp Sat Jun 22 16:34:18 2013 (r84883)
+++ trunk/boost/gil/extension/io/formats/tiff/reader_backend.hpp 2013-06-22 16:35:36 EDT (Sat, 22 Jun 2013) (r84884)
@@ -112,7 +112,7 @@
         }
         else
         {
- if( img_dim.x < _info._width ) { io_error( "Supplied image is too small" ); }
+ if( (tiff_image_width::type) img_dim.x < _info._width ) { io_error( "Supplied image is too small" ); }
         }
 
 
@@ -122,7 +122,7 @@
         }
         else
         {
- if( img_dim.y < _info._height ) { io_error( "Supplied image is too small" ); }
+ if( (tiff_image_height::type) img_dim.y < _info._height ) { io_error( "Supplied image is too small" ); }
         }
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk