Message ID | 877fixs9or.fsf@mid.deneb.enyo.de |
---|---|
State | New |
Headers | show |
diff --git a/misc/hsearch_r.c b/misc/hsearch_r.c index 7bc04cf..c73d3ed 100644 --- a/misc/hsearch_r.c +++ b/misc/hsearch_r.c @@ -48,7 +48,7 @@ isprime (unsigned int number) /* no even number will be passed */ unsigned int div = 3; - while (div * div < number && number % div != 0) + while (div * (unsigned long long) div < number && number % div != 0) div += 2; return number % div != 0;