Skip to content

Commit

Permalink
[BUFIX] Fixed invalid variable name. Removed redundant enum value
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Dec 14, 2024
1 parent 06ec396 commit 26e2e1f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion bindings/python/pesieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ class t_results_filter(ctypes.c_int):
SHOW_SUSPICIOUS_AND_ERRORS = 5
SHOW_SUCCESSFUL_ONLY = 6
SHOW_ALL = 7
SHOW_FILTERS_MAX = 8

class t_report_type(ctypes.c_int):
REPORT_NONE = 0
Expand Down
1 change: 0 additions & 1 deletion include/pe_sieve_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ namespace pesieve {
SHOW_SUSPICIOUS_AND_ERRORS = SHOW_ERRORS | SHOW_SUSPICIOUS,
SHOW_SUCCESSFUL_ONLY = SHOW_NOT_SUSPICIOUS | SHOW_SUSPICIOUS,
SHOW_ALL = SHOW_ERRORS | SHOW_NOT_SUSPICIOUS | SHOW_SUSPICIOUS,
SHOW_FILTERS_MAX ///< terminator of the list of filters
} t_results_filter;

typedef enum {
Expand Down
2 changes: 1 addition & 1 deletion params.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PEsieveParams : public Params
if (enumParam) {
this->addParam(enumParam);
this->setInfo(PARAM_RESULTS_FILTER, "Define what type of results are reported.");
for (size_t i = SHOW_SUSPICIOUS; i < SHOW_FILTERS_COUNT; i++) {
for (size_t i = SHOW_SUSPICIOUS; i <= SHOW_ALL; i++) {
t_results_filter mode = (t_results_filter)(i);
std::string info = translate_results_filter(mode);
if (info.empty()) continue;
Expand Down

0 comments on commit 26e2e1f

Please sign in to comment.