The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: convert mwsize * to int *
Replies: 10   Last Post: Jan 8, 2013 2:37 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 17
Registered: 7/8/07
Re: convert mwsize * to int *
Posted: Sep 25, 2009 9:20 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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$>...
> "Tomas Schiler" <> wrote in message <h9i819$t53$>...
> > 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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.