Skip to content

Commit

Permalink
Make compileEpoch "unsigned int", and start counting at 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Nov 24, 2016
1 parent 85ac91b commit 7f3a0f0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generic/tclBasic.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ Tcl_CreateInterp(void)

iPtr->cmdCount = 0;
TclInitLiteralTable(&iPtr->literalTable);
iPtr->compileEpoch = 0;
iPtr->compileEpoch = 1;
iPtr->compiledProcPtr = NULL;
iPtr->resolverPtr = NULL;
iPtr->evalFlags = 0;
Expand Down
2 changes: 1 addition & 1 deletion generic/tclCompile.h
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ typedef struct ByteCode {
* procs are specific to an interpreter so the
* code emitted will depend on the
* interpreter. */
int compileEpoch; /* Value of iPtr->compileEpoch when this
unsigned int compileEpoch; /* Value of iPtr->compileEpoch when this
* ByteCode was compiled. Used to invalidate
* code when, e.g., commands with compile
* procs are redefined. */
Expand Down
2 changes: 1 addition & 1 deletion generic/tclInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1898,7 +1898,7 @@ typedef struct Interp {
* compiled by the interpreter. Indexed by the
* string representations of literals. Used to
* avoid creating duplicate objects. */
int compileEpoch; /* Holds the current "compilation epoch" for
unsigned int compileEpoch; /* Holds the current "compilation epoch" for
* this interpreter. This is incremented to
* invalidate existing ByteCodes when, e.g., a
* command with a compile procedure is
Expand Down

0 comments on commit 7f3a0f0

Please sign in to comment.