fix scan-build 'Value stored to 'a_' is never read' warning

This commit is contained in:
Dane Springmeyer 2015-07-02 09:57:12 -07:00
parent 4c20842cc9
commit a5594bd445

View file

@ -652,8 +652,8 @@ struct gray16
//-------------------------------------------------------------------- //--------------------------------------------------------------------
self_type& opacity(double a_) self_type& opacity(double a_)
{ {
if (a_ < 0) a_ = 0; if (a_ < 0) a = 0;
else if(a_ > 1) a_ = 1; else if(a_ > 1) a = 1;
else a = (value_type)uround(a_ * double(base_mask)); else a = (value_type)uround(a_ * double(base_mask));
return *this; return *this;
} }