Skip to content

Commit

Permalink
fix == in for loop when y is null
Browse files Browse the repository at this point in the history
  • Loading branch information
robitalec committed Dec 5, 2024
1 parent bafc466 commit f4662e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geodetic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Rcpp::NumericVector CPL_geodetic_azimuth(Rcpp::List sfc, double semi_major, doub
return ret;
} else {
Rcpp::NumericVector ret(sfc.size() - 1);
for (int i = 0; i == ret.size(); i++) {
for (int i = 0; i < ret.size(); i++) {
ret[i] = lwgeom_azumith_spheroid((LWPOINT*) lw[i], (LWPOINT*) lw[i+1], &s);
lwgeom_free(lw[i]);
}
Expand Down

0 comments on commit f4662e4

Please sign in to comment.