From 9dc02fc7f30ffb3815cd78a866e3cda18d7e7499 Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 6 Jun 2017 03:34:49 +0300 Subject: [PATCH] Fix for `-a cryptonight-light`. --- options.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/options.c b/options.c index eb88bcb0..5dabefbd 100644 --- a/options.c +++ b/options.c @@ -175,14 +175,10 @@ static void parse_arg(int key, char *arg) { } # ifndef XMRIG_NO_AEON - if (i == ARRAY_SIZE(algo_names) && !strcmp(arg, "cryptonight-light")) { + if (i == ARRAY_SIZE(algo_names) - 1 && !strcmp(arg, "cryptonight-light")) { opt_algo = i = ALGO_CRYPTONIGHT_LITE; } # endif - - if (i == ARRAY_SIZE(algo_names)) { - show_usage_and_exit(1); - } } break;