Mercurial > hg > octave-image
changeset 464:0f8343f43cb1
Use OCTAVE_LOCAL_BUFFER instead of dynamic array.
author | goffioul |
---|---|
date | Tue, 30 Aug 2011 22:39:23 +0000 |
parents | eab214ef080c |
children | 32905e54edc3 |
files | src/__boundary__.cc |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/__boundary__.cc +++ b/src/__boundary__.cc @@ -21,6 +21,7 @@ * b = boundary(region, conn=8) */ #include <octave/oct.h> +#include <octave/oct-locbuf.h> using namespace std; @@ -118,7 +119,7 @@ const int* mBack = (conn == 4) ? back4 : back8; // relative indexes into the region for the Moore neighbourhood pixels - int mi [conn]; + OCTAVE_LOCAL_BUFFER (int, mi, conn); for (int i = 0; i < conn; ++i) mi[i] = mr[i] + (rows * mc [i]);