Permalink
Browse files

A better fix.

  • Loading branch information...
1 parent f76f109 commit 07fc691c5344940751011c3af96d0ab202b1b4e6 @liuliu committed Apr 13, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ccv_classic.c
View
@@ -303,7 +303,7 @@ void ccv_canny(ccv_dense_matrix_t* a, ccv_dense_matrix_t** b, int type, int size
rows[1] = rows[2];
rows[2] = row;
}
- memset(map + map_cols * (a->rows + 1), 0, sizeof(int) * map_cols);
+ memset(map_ptr - 1, 0, sizeof(int) * map_cols);
int dr[] = {-1, 1, -map_cols - 1, -map_cols, -map_cols + 1, map_cols - 1, map_cols, map_cols + 1};
while (stack_top > stack_bottom)
{

0 comments on commit 07fc691

Please sign in to comment.