Skip to content

Commit

Permalink
Bug fix for array comparison
Browse files Browse the repository at this point in the history
error: comparison between two arrays is deprecated in C++20
[-Werror=array-compare]
  • Loading branch information
ag-fieldline committed May 9, 2024
1 parent 16a9381 commit 691f295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libraries/fiff/fiff_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ inline qint32 FiffId::storageSize()
inline bool operator== (const FiffId &a, const FiffId &b)
{
return (a.version == b.version &&
a.machid == b.machid &&
a.machid[0] == b.machid[0] &&
a.machid[1] == b.machid[1] &&
a.time.secs == b.time.secs &&
a.time.usecs == b.time.usecs);
}
Expand Down

0 comments on commit 691f295

Please sign in to comment.