| Ticket UUID: | 1845320 | ||
| Title: | TclCompileEnsemble error ? | ||
| Type: | Bug | Created on: | 2007-12-06 06:35:05 |
| Submitter: | dgp | Assigned to: | dkf |
| Subsystem: | 47. Bytecode Compiler | Severity: | |
| Priority: | 8 | Last modified: | 2007-12-06 17:26:30 |
| Status: | Closed | Closed by: | dkf |
| Resolution: | Fixed | Closed on: | 2007-12-06 10:26:30 |
| Version: | obsolete: 8.5b3 | ||
| Description: | ||||
Check me on this, but at line 6360
of tclCompCmds.c in TclCompileEnsemble(),
I see:
memcpy(synthetic.tokenPtr + 2, argTokensPtr,
sizeof(Tcl_Token) * (synthetic.numTokens - 2));
and I think that should be:
memcpy(synthetic.tokenPtr + 2*len, argTokensPtr,
sizeof(Tcl_Token) * (synthetic.numTokens - 2*len));
Probably all of the core ensembles that
get compiled have (len == 1) so no problem
so far, but if the aim is a general facility,
multi-word subcommand targets should be
done right.
| ||||
| User Comments: | ||||
dgp added on 2007-12-06 13:48:00:
Logged In: YES user_id=80530 Originator: YES Less important, but I see some comments in the routine referring to [info exists] that appear to be out of date as well? dkf added on 2007-12-06 17:05:51:
Logged In: YES user_id=79902 Originator: NO Darn, it should be 2*len indeed. | ||||
