Artifacts Associated With Ticket 842511ffffffffffffffffffffffffffffffffff
Ticket change [06e6c8947c] (rid 89288) by vincentdarley on 2003-11-15 00:28:41:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Line 354 of tclParse.c gives me an 'signed/unsigned == comparison error' when compiling on Windows VC++ 5.2. This change fixes the problem: if ( (expPfxLen == (size_t)expPtr->size) (i.e. add a cast to 'size_t'). Similarly tclTest.c, line 6469 vs 6481 have a problem. 6469 in const, but the third parameter of Tcl_InitCustomHashTable is not const: static const Tcl_HashKeyType hkType = { TCL_HASH_KEY_TYPE_VERSION, TCL_HASH_KEY_SYSTEM_HASH, NULL, NULL, NULL, NULL }; Tcl_HashTable hash; Tcl_HashEntry *hPtr; int i, isNew, limit = 100; if (objc>1 && Tcl_GetIntFromObj(interp, objv[1], &limit)!=TCL_OK) { return TCL_ERROR; } Tcl_InitCustomHashTable(&hash, TCL_CUSTOM_TYPE_KEYS, &hkType); removing 'const' fixes the problem, but it may be better to change the definition of Tcl_InitCustomHashTable to add CONST, for all I know. I thought Tcl used capital letters for 'const' anyway, as a separate matter.... - foundin initialized to: "obsolete: 8.5a0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to: "compilation errors in tclParse.c, tclTest.c"
- type initialized to: "Bug"
Ticket change [afe8095464] (rid 97897) by vincentdarley on 2003-11-15 07:47:45:
- priority changed to: "9 Immediate"
Ticket change [ec2c4c5cd4] (rid 103668) by dgp on 2003-11-15 10:18:27:
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=80530 Thanks for the testing. Fix for tclParse.x accepted. Passing on to dkf for the new hash table testing issue.
- login: "dgp"
- mimetype: "text/plain"
- subsystem changed to: "10. Objects"
- username: "dgp"
Ticket change [e18de9e72b] (rid 87473) by dkf on 2003-11-16 06:44:26:
- closedate changed to: "2003-11-15T23:44:26"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Removed the const. I'm not 100% happy with it, but this is not the only public API in the core with this problem (e.g. Tcl_RegisterObjType) and I don't feel like embarking on a crusade to clean them all up.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dkf"