csr-dcf icon indicating copy to clipboard operation
csr-dcf copied to clipboard

Wrong type for dim?

Open TobiasBoettger opened this issue 6 years ago • 1 comments

https://github.com/alanlukezic/csr-dcf/blob/469959d14638d1b57014451dc254bda39df78d42/mex_src/hog/gradientMex.cpp#L336

argument of type "const int *" is incompatible with parameter of type "const mwSize={size_t={unsigned __int64}} *" mxSetData(M,*I); mxSetDimensions(M,dims,3); return M;

Should "dim" not rather be a "const unsigned __int64" (which is what mxSetDimensions and mxGetDimensions) expects?

TobiasBoettger avatar Jul 02 '18 12:07 TobiasBoettger

csr-dcf/mex_src/hog/gradientMex.cpp

Line 336 in 469959d

const int *dims; int nDims; argument of type "const int *" is incompatible with parameter of type "const mwSize={size_t={unsigned __int64}} *" mxSetData(M,*I); mxSetDimensions(M,dims,3); return M;

Should "dim" not rather be a "const unsigned __int64" (which is what mxSetDimensions and mxGetDimensions) expects?

modify the type of "*dims": const size_t *dims;

TSSSS4 avatar Nov 12 '18 06:11 TSSSS4