summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/rtl/tsan_clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/tsan/rtl/tsan_clock.h')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_clock.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_clock.h b/compiler-rt/lib/tsan/rtl/tsan_clock.h
index c4f8194479f..97e20a84992 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_clock.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_clock.h
@@ -41,23 +41,23 @@ struct ThreadClock {
public:
ThreadClock();
- u64 get(int tid) const {
+ u64 get(unsigned tid) const {
DCHECK(tid < kMaxTid);
return clk_[tid];
}
- void set(int tid, u64 v) {
+ void set(unsigned tid, u64 v) {
DCHECK(tid < kMaxTid);
DCHECK(v >= clk_[tid]);
clk_[tid] = v;
- if ((int)nclk_ <= tid)
+ if (nclk_ <= tid)
nclk_ = tid + 1;
}
- void tick(int tid) {
+ void tick(unsigned tid) {
DCHECK(tid < kMaxTid);
clk_[tid]++;
- if ((int)nclk_ <= tid)
+ if (nclk_ <= tid)
nclk_ = tid + 1;
}
OpenPOWER on IntegriCloud