Skip to content

Commit 9e8a575

Browse files
committed
added static_cast for dim input argument
1 parent d06bc44 commit 9e8a575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/smoothmedian.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void mexFunction (int nlhs, mxArray* plhs[],
103103
if ( mxIsComplex (prhs[1]) ) {
104104
mexErrMsgTxt ("The second input argument (DIM) cannot contain an imaginary part");
105105
}
106-
dim = *(mxGetPr (prhs[1]));
106+
dim = static_cast<short int> ( *(mxGetPr (prhs[1])) );
107107
} else {
108108
dim = 1;
109109
}

0 commit comments

Comments
 (0)