Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: convert mwsize * to int *
Posted:
Sep 25, 2009 7:52 AM
|
|
"Tomas Schiler" <excal@atlas.cz> wrote in message <h9i819$t53$1@fred.mathworks.com>... > Hello, > I am looking for way how to convert mwsize *type to int * because i was using mex file writen for 32 bit matlab which was used to call function of MIP solver xpress do i cannot change type in these functions. Now the code doesn't work and i am would like to find simpliest posible solution to solve problem. > Thank you.
Huuh? mwSize IS actually defined as INT on 32 bit platform. Here is highlight of the definition header:
#ifdef MX_COMPAT_32 typedef int mwSize; typedef int mwIndex; typedef int mwSignedIndex; #else typedef size_t mwSize; /* unsigned pointer-width integer */ typedef size_t mwIndex; /* unsigned pointer-width integer */ typedef ptrdiff_t mwSignedIndex; /* a signed pointer-width integer */ #endif
Bruno
|
|
|
|