Remove the signed/unsigned comparison warning

This commit is contained in:
Cary R 2008-06-10 19:46:31 -07:00 committed by Stephen Williams
parent d7814ed767
commit acf010326c
1 changed files with 1 additions and 1 deletions

View File

@ -2586,7 +2586,7 @@ bool of_LOAD_X1P(vthread_t thr, vvp_code_t cp)
for (long idx = 0 ; idx < wid ; idx += 1) {
long use_index = index + idx;
vvp_bit4_t val;
if (use_index < 0 || use_index >= sig->size())
if (use_index < 0 || use_index >= (signed)sig->size())
val = BIT4_X;
else
val = sig->value(use_index);