Fix tolerance (-T) option (Fixes issue 102)

Thanks to fnargwibble
This commit is contained in:
Romuald Conty 2012-10-14 10:35:37 +00:00
parent 25e1b8a3c6
commit 02afffce07

View file

@ -126,7 +126,7 @@ int main(int argc, char * const argv[]) {
{
int res;
// Nonce tolerance range
if (((res = atoi(optarg)) != 0) || (res < 0)) {
if (((res = atoi(optarg)) < 0)) {
ERR ("The nonce distances range must be a zero or a positive number");
exit (EXIT_FAILURE);
}