Skip to content

Commit

Permalink
fixed undefined behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
yukatayu authored Feb 28, 2020
1 parent bab1008 commit 5f2ede8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openvslam/feature/orb_extractor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ float orb_extractor::ic_angle(const cv::Mat& image, const cv::Point2f& point) co

const auto step = static_cast<int>(image.step1());
for (int v = 1; v <= fast_half_patch_size_; ++v) {
unsigned int v_sum = 0;
int v_sum = 0;
const int d = u_max_.at(v);
for (int u = -d; u <= d; ++u) {
const int val_plus = center[u + v * step];
Expand Down

0 comments on commit 5f2ede8

Please sign in to comment.