Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


John
Posts:
17
Registered:
7/8/07


Re: convert mwsize * to int *
Posted:
Sep 25, 2009 9:20 AM


I am sorry that I didn’t express my problem clear enough. Function is written for 32 bit system but I am using 64 bit system now.
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <h9iat2$33d$1@fred.mathworks.com>... > "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 pointerwidth integer */ > typedef size_t mwIndex; /* unsigned pointerwidth integer */ > typedef ptrdiff_t mwSignedIndex; /* a signed pointerwidth integer */ > #endif > > Bruno



