projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a5bc08
)
promise: fix signed/unsigned warning
author
Brian Norris
<banorris@uci.edu>
Sat, 3 Nov 2012 19:09:20 +0000
(12:09 -0700)
committer
Brian Norris
<banorris@uci.edu>
Sat, 3 Nov 2012 19:09:20 +0000
(12:09 -0700)
promise.cc
patch
|
blob
|
history
diff --git
a/promise.cc
b/promise.cc
index 59fb9ee43115cd81ed60b2487ffbb563e90bd6da..68290eecefac6c7ed72673e01a941e9f0afda3be 100644
(file)
--- a/
promise.cc
+++ b/
promise.cc
@@
-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++) {
- 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;
}
}