Forum > Windows
Pondering Pointer Portability.
Jason G:
//---------------------------------------------------------------------
//METHOD 6: attempt to revisit/adapt Joe's suggestion // Works now no Warnings
uintptr_t uiptAlignedMem = (uintptr_t) ( *((uintptr_t *)&pmem) + byteAlignment + PTR_SIZE ) & ~byteAlignment;
palignedMem = (void *) uiptAlignedMem;
//---------------------------------------------------------------------
LOL Now there's one cryptic line :D
I am now considering this ultra nerdy topic closed ;D [Unless someone has a neater, more portable , preferrably easier to read method for performing integer arithmetic with pointers... without generating compile time warnings]
Another solvable problem through cryptic casting and pointer juggling!
Jason
Navigation
[0] Message Index
[*] Previous page
Go to full version