Overview
| Artifact ID: | 06e6c8947c24bd929fc904e61897d420cf250239 |
|---|---|
| Ticket: | 842511ffffffffffffffffffffffffffffffffff
compilation errors in tclParse.c, tclTest.c |
| User & Date: | vincentdarley on 2003-11-15 00:28:41 |
Changes
- assignee changed to: "dgp"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.5a0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "vincentdarley"
- subsystem changed to: "45. Parsing and Eval"
- title changed to: "compilation errors in tclParse.c, tclTest.c"
- type changed to: "Bug"