light: fix gcc9 build
This commit is contained in:
parent
e6d9605b86
commit
91734ac8f6
|
|
@ -72,6 +72,7 @@ struct lightgrid_sample_t
|
||||||
* - if a color component is nan, nan is considered equal to nan for the purposes of this comparison
|
* - if a color component is nan, nan is considered equal to nan for the purposes of this comparison
|
||||||
*/
|
*/
|
||||||
bool operator==(const lightgrid_sample_t &other) const;
|
bool operator==(const lightgrid_sample_t &other) const;
|
||||||
|
bool operator!=(const lightgrid_sample_t &other) const; //gcc9 workaround
|
||||||
};
|
};
|
||||||
|
|
||||||
struct lightgrid_samples_t
|
struct lightgrid_samples_t
|
||||||
|
|
|
||||||
|
|
@ -3580,6 +3580,11 @@ bool lightgrid_sample_t::operator==(const lightgrid_sample_t &other) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool lightgrid_sample_t::operator!=(const lightgrid_sample_t &other) const
|
||||||
|
{
|
||||||
|
return !(*this == other);
|
||||||
|
}
|
||||||
|
|
||||||
int lightgrid_samples_t::used_styles() const
|
int lightgrid_samples_t::used_styles() const
|
||||||
{
|
{
|
||||||
int used = 0;
|
int used = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue