[Dev-C++] Using 32-bit pointers on a 64-bit machine
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Siva C. <siv...@ya...> - 2008-07-11 06:32:21
|
Hello All, I have some amount of code which treats pointers and unsigned int variables alike. I know it is not a good thing to do. However, I NEED to do something like that. My concern now is this - How do I migrate to a 64-bit machine without many changes to the code. I should still be allowed to use unsigned int and pointers interchangeably. Moreover, I want sizeof(unsigned int *) to be 4 bytes instead of 8 on a 64-bit machine. Is there a quick and neat way to do the adaption? Even otherwise, how should we be managing such problem? Thanks and regards, Siva Chandra |