<i>Fix 64bit pointer cast warnings</i> status still Open with 4 other changes
by
.
D 2006-11-09T01:49:10
J icomment Logged\sIn:\sYES\s\nuser_id=90580\n\nwhile\sintptr_t/uintptr_t\sare\sC99isms,\sgcc\smakes\sthem\savailable\sin\sC89\smode\sas\swell;\sin\sany\scase,\sac\schecks\sif\sthey\sare\s\navailable\sin\s<inttypes.h>\sor\s<stdint.h>,\s\sotherwise\sit\sfinds\sa\sscalar\stype\sof\sthe\ssame\ssize\sas\ss\sa\spointer\sand\sdefines\s\nintptr_t/uintptr_t\s\sto\sthat.\sIf\sthis\sfails\s(and\son\swin\scurrently),\smy\sINTPTR_T/UINTPTR_T\smacros\sfall\sback\sto\sdo\sa\snop\s\ncast\sto\s(void*).\n\nI\sagree\sabout\sthe\sugliness,\swhile\sstandard,\sINTPTR_T\sis\snot\sa\svery\snice\sname,\sbut\sI\scouldn't\scome\sup\swith\sanything\s\nmemnonic\sto\sdesignate\sa\scast\sto\san\sinteger\stype\sdefined\sto\sbe\sthe\ssame\ssize\sas\sa\spointer...\n\nI\sthink\sUINT()\swould\sbe\sconfusing\sif\syou\smean\sit\sto\sbe\sjust\sa\scast\sto\s(intptr_t),\sbut\sit\smight\smake\ssense\sfor\sa\scast\sof\sa\s\npointer\sto\s(int)(intptr_t).\sWe\swould\sthen\salso\sneed\sa\sname\sfor\sthe\sother\sdirection,\si.e.\scast\sof\san\sint\sto\s(void*)(intptr_t),\s\nas\swell\sas\s(unsigned\sint)\svariants\sof\sboth,\se.g.\sUINT(),\sUPTR(),\sUUINT(),\sUUPTR()\s?\nnot\ssure\sthat's\sall\sthat\sclear,\smaybe\sPTR2INT(),\sINT2PTR,\sPTR2UINT,\sUINT2PTR()\s?\n\n
J login das
J mimetype text/plain
J username das
K 1592791fffffffffffffffffffffffffffffffff
U das
Z 947d5b88b5e150962f1d13052525fe88