fixup 'int' vs. 'thread_id_t' usage
[c11tester.git] / action.cc
index 16f2327e8dc73de1ef564747bb27ae8c54c639fd..140d59098f8c37732753e4f80ddc58f8a883810b 100644 (file)
--- a/action.cc
+++ b/action.cc
@@ -492,7 +492,7 @@ unsigned int ModelAction::hash() const
        unsigned int hash=(unsigned int) this->type;
        hash^=((unsigned int)this->order)<<3;
        hash^=seq_number<<5;
-       hash^=tid<<6;
+       hash ^= id_to_int(tid) << 6;
 
        if (is_read()) {
                if (reads_from)