Skip to content

Commit

Permalink
fix bugs: const MAX_FILTER_KIND_SIZE outside the valid range
Browse files Browse the repository at this point in the history
fix bugs: src/Filter.h:60:14: error: integer value 2 is outside the valid range of values [0, 1] for the enumeration type 'FilterKind' [-Wenum-constexpr-conversion]; csmith-project#163

Fixes: csmith-project#163
Signed-off-by: sendaoYan <[email protected]>
  • Loading branch information
sendaoYan committed Jan 26, 2024
1 parent 0ec6f1b commit 11e6354
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@
enum FilterKind {
fDefault,
fDFS,
MAX_FILTER_KIND_SIZE,
};

#define MAX_FILTER_KIND_SIZE ((FilterKind) (fDFS + 1))

// Filter base class
class Filter
{
Expand Down

0 comments on commit 11e6354

Please sign in to comment.