Skip to content

Commit

Permalink
remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TimTaylor committed Nov 10, 2023
1 parent df8b533 commit d9f3245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cut_ages.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ SEXP cut_ages(SEXP ages, SEXP breaks, SEXP max_upper) {

for (int i = 0; i < n_ages; i++) {
int age = p_ages[i];
if (age == NA_INTEGER || age < first_break || age >= max_upper_bound) {
if (age == NA_INTEGER || age >= max_upper_bound) {
p_factor[i] = NA_INTEGER;
p_lower_bound[i] = NA_REAL;
p_upper_bound[i] = NA_REAL;
Expand Down

0 comments on commit d9f3245

Please sign in to comment.