promise: fix signed/unsigned warning
authorBrian Norris <banorris@uci.edu>
Sat, 3 Nov 2012 19:09:20 +0000 (12:09 -0700)
committerBrian Norris <banorris@uci.edu>
Sat, 3 Nov 2012 19:09:20 +0000 (12:09 -0700)
promise.cc

index 59fb9ee..68290ee 100644 (file)
@@ -15,7 +15,7 @@ bool Promise::increment_threads(thread_id_t tid) {
        unsigned int sync_size=synced_thread.size();
        int promise_tid=id_to_int(read->get_tid());
        for(unsigned int i=1;i<model->get_num_threads();i++) {
        unsigned int sync_size=synced_thread.size();
        int promise_tid=id_to_int(read->get_tid());
        for(unsigned int i=1;i<model->get_num_threads();i++) {
-               if ((i >= sync_size || !synced_thread[i]) && ( i != promise_tid ) && (enabled[i] != THREAD_DISABLED)) {
+               if ((i >= sync_size || !synced_thread[i]) && ( (int)i != promise_tid ) && (enabled[i] != THREAD_DISABLED)) {
                        return false;
                }
        }
                        return false;
                }
        }