diff options
author | das <das> | 2008-12-07 16:28:15 (GMT) |
---|---|---|
committer | das <das> | 2008-12-07 16:28:15 (GMT) |
commit | 0b24fb67d14cb4d0ddbf252eb14f5d4c6a9485e7 (patch) | |
tree | 3e36b26fee54818f5c76d2aa00744094d75013f7 | |
parent | 4c8967407f0115958f2a1001c759bcbd65655b99 (diff) | |
download | tcl-0b24fb67d14cb4d0ddbf252eb14f5d4c6a9485e7.zip tcl-0b24fb67d14cb4d0ddbf252eb14f5d4c6a9485e7.tar.gz tcl-0b24fb67d14cb4d0ddbf252eb14f5d4c6a9485e7.tar.bz2 |
Fix warnings with assertions enabled
-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; } |