.
D 2003-11-15T00:28:41
J assignee dgp
J cmimetype text/plain
J comment Line\s354\sof\stclParse.c\sgives\sme\san\s'signed/unsigned\s==\ncomparison\serror'\swhen\scompiling\son\sWindows\sVC++\s5.2.\s\nThis\schange\sfixes\sthe\sproblem:\n\n\s\s\s\sif\s(\s(expPfxLen\s==\s(size_t)expPtr->size)\n\n(i.e.\sadd\sa\scast\sto\s'size_t').\n\nSimilarly\stclTest.c,\sline\s6469\svs\s6481\shave\sa\sproblem.\n6469\sin\sconst,\sbut\sthe\sthird\sparameter\sof\nTcl_InitCustomHashTable\sis\snot\sconst:\n\n\s\s\s\sstatic\sconst\sTcl_HashKeyType\shkType\s=\s{\nTCL_HASH_KEY_TYPE_VERSION,\sTCL_HASH_KEY_SYSTEM_HASH,\nNULL,\sNULL,\sNULL,\sNULL\n\s\s\s\s};\n\s\s\s\sTcl_HashTable\shash;\n\s\s\s\sTcl_HashEntry\s*hPtr;\n\s\s\s\sint\si,\sisNew,\slimit\s=\s100;\n\n\s\s\s\sif\s(objc>1\s&&\sTcl_GetIntFromObj(interp,\sobjv[1],\n&limit)!=TCL_OK)\s{\nreturn\sTCL_ERROR;\n\s\s\s\s}\n\n\s\s\s\sTcl_InitCustomHashTable(&hash,\nTCL_CUSTOM_TYPE_KEYS,\s&hkType);\n\nremoving\s'const'\sfixes\sthe\sproblem,\sbut\sit\smay\sbe\nbetter\sto\schange\sthe\sdefinition\sof\nTcl_InitCustomHashTable\sto\sadd\sCONST,\sfor\sall\sI\sknow.\n\nI\sthought\sTcl\sused\scapital\sletters\sfor\s'const'\sanyway,\nas\sa\sseparate\smatter....\n
J foundin obsolete:\s8.5a0
J priority 5\sMedium
J resolution None
J status Open
J submitter vincentdarley
J subsystem 45.\sParsing\sand\sEval
J title compilation\serrors\sin\stclParse.c,\stclTest.c
J type Bug
K 842511ffffffffffffffffffffffffffffffffff
U vincentdarley
Z 8bafedce117f86086912cdc49bcf354b