use uint32_t for vl
authorYunsup Lee <yunsup@cs.berkeley.edu>
Wed, 16 Oct 2013 21:26:59 +0000 (14:26 -0700)
committerYunsup Lee <yunsup@cs.berkeley.edu>
Wed, 16 Oct 2013 21:26:59 +0000 (14:26 -0700)
hwacha/hwacha.cc

index 8eff59ca26643a3b7145da7b6a7e13802557b516..61282d3c8cbf02c5aaf85d937430277714d8f686 100644 (file)
@@ -37,7 +37,7 @@ std::vector<insn_desc_t> hwacha_t::get_instructions()
 
 bool hwacha_t::vf_active()
 {
-  for (int i=0; i<get_ct_state()->vl; i++) {
+  for (uint32_t i=0; i<get_ct_state()->vl; i++) {
     if (get_ut_state(i)->run)
       return true;
   }