| MATLAB Central > MATLAB Newsreader > convert mwsize * to int * |
|
|
|
Hello, |
|
"Tomas Schiler" <excal@atlas.cz> wrote in message <h9i819$t53$1@fred.mathworks.com>... |
|
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. |
|
"Tomas Schiler" <excal@atlas.cz> wrote in message <h9ig2u$kuj$1@fred.mathworks.com>... |
|
"James Tursa" <aclassyguy_with_a_k_not_a_c@hotmail.com> wrote in message <h9inrd$ahr$1@fred.mathworks.com>... |
|
Tomas Schiler wrote, On 9/25/2009 7:20 AM: |
|
Subject: convert mwsize * to int * From: Thomas Meinguet Date: 6 Jan, 2013 10:56:08 Message: 7 of 13 |
|
I'd like to come back on this topic. This is not a problem of running a 32bit executable on a 64bit environment but a relevant issue for which a clean solution is indispensable. There are powerful precompiled external 64bit libraries whose input are int* pointers as well. The solution I see for the moment is to cast mwIndex (size_t) values into int in new vectors like this: |
|
"Thomas Meinguet" <thomas.meinguet@skynet.be> wrote in message <kcbl88$de3$1@newscl01ah.mathworks.com>... |
|
Subject: convert mwsize * to int * From: Thomas Meinguet Date: 8 Jan, 2013 06:46:17 Message: 9 of 13 |
|
Thank you James. |
|
"Thomas Meinguet" <thomas.meinguet@skynet.be> wrote in message <kcgfbp$v9$1@newscl01ah.mathworks.com>... |
|
"Thomas Meinguet" <thomas.meinguet@skynet.be> wrote in message <kcgfbp$v9$1@newscl01ah.mathworks.com>... |
|
Subject: convert mwsize * to int * From: Thomas Meinguet Date: 8 Jan, 2013 21:28:09 Message: 12 of 13 |
|
Correct. |
|
Subject: convert mwsize * to int * From: Thomas Meinguet Date: 9 Jan, 2013 21:07:12 Message: 13 of 13 |
|
small amendments to fix the indicices of the indexation as well: |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| sparse | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| int | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| mex | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| mwindex | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| cast | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| size_t | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| mwsize | Thomas Meinguet | 6 Jan, 2013 05:59:11 |
| mex file | Tomas Schiler | 25 Sep, 2009 07:04:11 |
| mwsize | Tomas Schiler | 25 Sep, 2009 07:04:11 |
