Skip to content

Commit

Permalink
Update image-smoother.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Aug 21, 2017
1 parent f5f003e commit dc8424f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/image-smoother.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Solution {
for (const auto& direction : directions) {
const auto& ii = i + direction.first;
const auto& jj = j + direction.second;
if (0 <= ii && ii < m && 0 <= jj & jj < n) {
if (0 <= ii && ii < m && 0 <= jj && jj < n) {
total += M[ii][jj];
++count;
}
Expand Down

0 comments on commit dc8424f

Please sign in to comment.