diff options
author | hobbs <hobbs> | 1999-10-21 02:16:21 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-10-21 02:16:21 (GMT) |
commit | 255b6f78419e20a2954baaab97b26182a4b27c76 (patch) | |
tree | 4f65ebbb53559917f7b5085067635040cae62b80 /generic/regc_color.c | |
parent | d5139c797f55bb15e8fe74bdd46ba58a6930794b (diff) | |
download | tcl-255b6f78419e20a2954baaab97b26182a4b27c76.zip tcl-255b6f78419e20a2954baaab97b26182a4b27c76.tar.gz tcl-255b6f78419e20a2954baaab97b26182a4b27c76.tar.bz2 |
* unix/tclUnixNotfy.c: fixed event/io threading problems by
making triggerPipe non-blocking
* library/tcltest1.0/tcltest.tcl:
* generic/tclThreadTest.c: fixed mem leaks in threads
* generic/tclResult.c: fixed Tcl_AppendResultVA so it only
iterates once over the va_list (avoiding a memcpy of it,
which is not portable).
* generic/regc_color.c: fixed mem leak and assertion, from HS
* generic/tclCompile.c: removed savedChar trick that appeared to
be causing a segv when the literal table was released
* tests/string.test:
* generic/tclCmdMZ.c: fixed [string index] to return ByteArrayObj
when indexing into one (test case string-5.16) [Bug: 2871]
Diffstat (limited to 'generic/regc_color.c')
-rw-r--r-- | generic/regc_color.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/regc_color.c b/generic/regc_color.c index 000d0ea..5aed21c 100644 --- a/generic/regc_color.c +++ b/generic/regc_color.c @@ -97,7 +97,7 @@ struct colormap *cm; cm->magic = 0; if (NBYTS > 1) cmtreefree(cm, cm->tree, 0); - for (i = 1; i < cm->max; i++) /* skip WHITE */ + for (i = 1; i <= cm->max; i++) /* skip WHITE */ if (!UNUSEDCOLOR(&cm->cd[i])) { cb = cm->cd[i].block; if (cb != NULL) @@ -456,7 +456,7 @@ struct state *rp; color co; color sco; - assert((uc & BYTMASK) == 0); + assert((uc % BYTTAB) == 0); /* find its color block, making new pointer blocks as needed */ t = cm->tree; |