fix scan-build 'Value stored to 'a_' is never read' warning
This commit is contained in:
parent
4c20842cc9
commit
a5594bd445
1 changed files with 2 additions and 2 deletions
4
deps/agg/include/agg_color_gray.h
vendored
4
deps/agg/include/agg_color_gray.h
vendored
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue