"Tomas Schiler" <email@example.com> wrote in message <firstname.lastname@example.org>... > 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