Skip to content
Tcl Source Code Artifact [59801c8edf]
Login

Artifact [59801c8edf]

Artifact 59801c8edf946da3dd2c7bfe4cfb52468496c524:

Ticket change [59801c8edf] - New ticket [219223ffffffffff|219223ffff] <i>64 bit format command behaves differently to the 32bit forma</i>. by nobody on 2000-10-26 05:03:48.
D 2000-10-26T05:03:48
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4087\sBug\nVersion:\s8.3b2\nSubmitDate:\s'2000-01-26'\nLastModified:\s'2000-04-09'\nSeverity:\sSER\nStatus:\sAssigned\nSubmitter:\stechsupp\nChangedBy:\shobbs\nRelatedBugIDs:\s653\nOS:\sSolaris\nOSVersion:\sSolaris\s7\s64\sbit\nMachine:\sUltra\sEnterprise\s4500\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\sMatthew\sFinch\n\nReproducibleScript:\nIf\sI\scompile\stcl8.3b2\sin\s64\sbit\smode\son\sSolaris\s7\susing\s-xarch=v9\sthen\nperform\sthe\sfollowing\sI\sget....\n\n#\s./tclsh\n%\sformat\s%X\s4294967290\ninteger\svalue\stoo\slarge\sto\srepresent\sas\snon-long\sinteger\n%\s\n\nIf\sI\scompile\stcl8.3b2\sin\s32\sbit\smode\son\sSolaris\s7\sthen\sperform\sthe\nfollowing\sI\sget...\n\n#\s./tclsh\n%\sformat\s%X\s4294967290\nFFFFFFFA\n%\s\n\nThe\sproblem\sis\srelates\sto\sthe\scasting\sin\sTcl_GetIntFromObj()\n\n\s\s\s\sif\s(((long)((int)l))\s==\sl)\s{\n\s\s\s\s\s\s\s\s*intPtr\s=\s(int)objPtr->internalRep.longValue;\n\s\s\s\s\s\s\s\sreturn\sTCL_OK;\n\s\s\s\s}\n\nThe\sresults\sshould\sbe\sthe\ssame.\n\nObservedBehavior:\nIf\sI\scompile\stcl8.3b2\sin\s64\sbit\smode\son\sSolaris\s7\susing\s-xarch=v9\sthen\nperform\sthe\sfollowing\sI\sget....\n\n#\s./tclsh\n%\sformat\s%X\s4294967290\ninteger\svalue\stoo\slarge\sto\srepresent\sas\snon-long\sinteger\n%\n\nDesiredBehavior:\nI\sexpect\sto\ssee\sthe\ssame\sbehaviour\sas\swhen\sI\scompiled\stclsh\son\sSolaris\s7\sin\s32\sbit\smode\n\ne.g\n#\s./tclsh\n%\sformat\s%X\s4294967290\nFFFFFFFA\n%\n\n\n\nActually,\sthere\sis\ssome\slevel\sof\scorrectness\shere.\s\sThe\snumber\nthe\suser\sis\susing\sis\sjust\s-6\sas\sfar\sas\sTcl\sis\sconcerned\son\sa\n32bit\ssystem.\s\sWhen\sthere\sare\strue\slongs,\sthen\sTcl\shandles\sthe\nnumber\sproperly\sin\scertain\scontexts.\s\sHowever,\sformat\scurrently\nisn't\sone\sof\sthem.\s\sThis\sshould\sbe\srevisited\sin\s8.4\sto\slook\sat\nexpanding\sthe\suse\sof\sTcl_GetLongFromObj,\swhich\swould\ssolve\sthe\nproblem\shere.\s\sWe\sjust\sneed\sto\smake\ssure\sit\swon't\sconfuse\nsomething\selse\sdown\sthe\schain\sthat\swill\schoke\son\sthe\slong\svalue.\s\n--\s04/09/2000\shobbs
J foundin obsolete:\s8.3b2
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 81.\sBundled\sPackages
J title 64\sbit\sformat\scommand\sbehaves\sdifferently\sto\sthe\s32bit\sforma
J type Bug
K 219223ffffffffffffffffffffffffffffffffff
U nobody
Z 820596a897d8cb1353a8871863d535d1