Skip to content
Tcl Source Code Artifact [789be2a192]
Login

Artifact [789be2a192]

Artifact 789be2a192a2e72c54bb09bed8a2089bf2837b45:

Ticket change [789be2a192] - Ticket [699060ffffffffff|699060ffff] <i>format %08x 32/64bit confusion</i> status still Open with 4 other changes by srwarren on 2003-03-08 10:59:23.
D 2003-03-08T10:59:23
J icomment Logged\sIn:\sYES\s\nuser_id=728162\n\nHere's\sthe\sinfo\son\sthe\smachine\sI'm\susing:\n\n%\sparray\stcl_platform\ntcl_platform(byteOrder)\s=\slittleEndian\ntcl_platform(machine)\s\s\s=\si686\ntcl_platform(os)\s\s\s\s\s\s\s\s=\sLinux\ntcl_platform(osVersion)\s=\s2.4.7-10custom\ntcl_platform(platform)\s\s=\sunix\ntcl_platform(user)\s\s\s\s\s\s=\sswarren\ntcl_platform(wordSize)\s\s=\s4\n\n%\sinfo\spatch\n8.4.1\n\nI\salso\sdownloaded\s8.4.2\sand\shad\sthe\ssame\sissue.\n\n(Perhaps\s64-bit\s(native)\splatform\sisn't\sthe\sissue\s-\sit's\sjust\s\nwhether\stclWideIntType\sis\snot\sthe\ssame\sas\stclIntType,\sor\s\nwhether\sthe\swide\sint\srepresentation\sisn't\sthe\ssame\sas\sthe\s\ncompiler's\slong\stype)\n\nI\sreplace\sthe\scode\swith\sthis\sand\sit\ssolved\smy\sissue,\salthough\sit\s\nprobably\sneeds\scleanup\sfor\sthe\sproduct\ssince\sI\swasn't\svery\s\nconcerned\sabout\scorner\scases,\sarchitecture\sdifferences\setc.\s\netc.\n\n---------------------------------------\n\s\s\s\s\s\s\s\sswitch\s(*format)\s{\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'i':\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\snewPtr[-1]\s=\s'd';\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'd':\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'o':\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'u':\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'x':\n\s\s\s\s\s\s\s\s\s\s\s\scase\s'X':\n#ifndef\sTCL_WIDE_INT_IS_LONG\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(Tcl_GetWideIntFromObj(interp,\s/*\sINTL:\sTcl\s\nsource.\s*/\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sobjv[objIndex],\s&wideValue)\s!=\sTCL_OK)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sgoto\sfmtError;\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(useWide)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\swhichValue\s=\sWIDE_VALUE;\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\selse\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\swhichValue\s=\sINT_VALUE;\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sintValue\s=\s(wideValue\s&\s0xffffffffU);\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n#else\s/*\sTCL_WIDE_INT_IS_LONG\s*/\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sif\s(Tcl_GetLongFromObj(interp,\s\s\s\s\s\s\s\s/*\sINTL:\sTcl\s\nsource.\s*/\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sobjv[objIndex],\s&intValue)\s!=\sTCL_OK)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\sgoto\sfmtError;\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\swhichValue\s=\sINT_VALUE;\n#endif\s/*\sTCL_WIDE_INT_IS_LONG\s*/\n...\sas\sbefore\n---------------------------------------\n\n
J login srwarren
J mimetype text/plain
J username srwarren
K 699060ffffffffffffffffffffffffffffffffff
U srwarren
Z f49c60684b878cd8fb280e8d29da53a6