Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
danaj committed Apr 26, 2024
1 parent 501385c commit 5f075f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions almost_primes.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ static UV apca(UV mid, UV k) { return almost_prime_count_approx(k, mid); }
static UV apce(UV mid, UV k) { return almost_prime_count(k, mid); }

UV nth_almost_prime_upper(uint32_t k, UV n) {
UV r, max, lo, hi;
UV r, max, lo;

if (n == 0) return 0;
if (k == 0) return (n == 1) ? 1 : 0;
Expand All @@ -348,7 +348,7 @@ UV nth_almost_prime_upper(uint32_t k, UV n) {
}

UV nth_almost_prime_lower(uint32_t k, UV n) {
UV r, max, lo, hi;
UV r, max, lo;

if (n == 0) return 0;
if (k == 0) return (n == 1) ? 1 : 0;
Expand All @@ -368,7 +368,7 @@ UV nth_almost_prime_lower(uint32_t k, UV n) {
}

UV nth_almost_prime_approx(uint32_t k, UV n) {
UV max, lo, hi;
UV max, lo;

if (n == 0) return 0;
if (k == 0) return (n == 1) ? 1 : 0;
Expand Down

0 comments on commit 5f075f7

Please sign in to comment.