mirror of
https://github.com/boostorg/gil.git
synced 2026-02-18 02:02:09 +00:00
Remove redundant local num_values in packed_channel_reference_base::set()
Pre-defined packed_channel_reference_base::set::num_values already represents the value. Fixes warning C4458: declaration of 'num_values' hides class member
This commit is contained in:
committed by
Stefan Seefeld
parent
7b5f917c9f
commit
6c230bf1cf
@@ -351,7 +351,6 @@ protected:
|
||||
|
||||
private:
|
||||
void set(integer_t value) const { // can this be done faster??
|
||||
const integer_t num_values = max_val+1;
|
||||
this->derived().set_unsafe(((value % num_values) + num_values) % num_values);
|
||||
}
|
||||
integer_t get() const { return derived().get(); }
|
||||
|
||||
Reference in New Issue
Block a user