|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65171 - trunk/boost/gil
From: chhenning_at_[hidden]
Date: 2010-09-01 14:03:16
Author: chhenning
Date: 2010-09-01 14:03:15 EDT (Wed, 01 Sep 2010)
New Revision: 65171
URL: http://svn.boost.org/trac/boost/changeset/65171
Log:
Corrected bug with dealing with cross byte pixel values. See updated test code in pixel_iterator.cpp.
Text files modified:
trunk/boost/gil/channel.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/gil/channel.hpp
==============================================================================
--- trunk/boost/gil/channel.hpp (original)
+++ trunk/boost/gil/channel.hpp 2010-09-01 14:03:15 EDT (Wed, 01 Sep 2010)
@@ -492,7 +492,7 @@
integer_t get() const {
const BitField channel_mask = parent_t::max_val<<_first_bit;
- return ( static_cast< integer_t >( this->get_data()&channel_mask ) >> _first_bit );
+ return static_cast< integer_t >(( this->get_data() & channel_mask ) >> _first_bit);
}
};
@@ -527,7 +527,7 @@
integer_t get() const {
const BitField channel_mask = parent_t::max_val<<_first_bit;
- return ( static_cast< integer_t >( this->get_data()&channel_mask ) >> _first_bit );
+ return static_cast< integer_t >(( this->get_data() & channel_mask ) >> _first_bit );
}
void set_unsafe(integer_t value) const {
const BitField channel_mask = parent_t::max_val<<_first_bit;
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