diff options
author | das <das@noemail.net> | 2008-12-07 16:28:15 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2008-12-07 16:28:15 (GMT) |
commit | fde514b16336c406b2db3dfa7c7eb026eb22b034 (patch) | |
tree | 3e36b26fee54818f5c76d2aa00744094d75013f7 /generic/regc_color.c | |
parent | 95defdccaa722c688b1ee68953d6578b4fa7d39d (diff) | |
download | tcl-fde514b16336c406b2db3dfa7c7eb026eb22b034.zip tcl-fde514b16336c406b2db3dfa7c7eb026eb22b034.tar.gz tcl-fde514b16336c406b2db3dfa7c7eb026eb22b034.tar.bz2 |
Fix warnings with assertions enabled
FossilOrigin-Name: 0a4a880ba1172362dbc47612c60f3a2c55ce5238
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 7a98dcb..b7a571c 100644 --- a/generic/regc_color.c +++ b/generic/regc_color.c @@ -320,7 +320,7 @@ freecolor( cm->free = cm->cd[cm->free].sub; } if (cm->free > 0) { - assert(cm->free < cm->max); + assert((size_t)cm->free < cm->max); pco = cm->free; nco = cm->cd[pco].sub; while (nco > 0) { @@ -332,7 +332,7 @@ freecolor( nco = cm->cd[nco].sub; cm->cd[pco].sub = nco; } else { - assert(nco < cm->max); + assert((size_t)nco < cm->max); pco = nco; nco = cm->cd[pco].sub; } |