light: fix gcc9 build

This commit is contained in:
Eric Wasylishen 2023-09-17 21:24:04 -06:00
parent e6d9605b86
commit 91734ac8f6
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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;