projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changes
[c11tester.git]
/
datarace.h
diff --git
a/datarace.h
b/datarace.h
index eed0e1711fbcadb5bc9a2858f4138f23b31c95e4..2518464af9aa016bfea09050764e240e58a511b9 100644
(file)
--- a/
datarace.h
+++ b/
datarace.h
@@
-116,7
+116,7
@@
bool race_equals(struct DataRace *r1, struct DataRace *r2);
#define MAXWRITEVECTOR (WRITEMASK-1)
#define INVALIDSHADOWVAL 0x2ULL
#define MAXWRITEVECTOR (WRITEMASK-1)
#define INVALIDSHADOWVAL 0x2ULL
-#define CHECKBOUNDARY(location, bits) (
(((uintptr_t)location & MASK16BIT) + bits < MASK16BIT) ? true : false );
+#define CHECKBOUNDARY(location, bits) (
(((uintptr_t)location & MASK16BIT) + bits) <= MASK16BIT)
typedef HashSet<struct DataRace *, uintptr_t, 0, model_malloc, model_calloc, model_free, race_hash, race_equals> RaceSet;
typedef HashSet<struct DataRace *, uintptr_t, 0, model_malloc, model_calloc, model_free, race_hash, race_equals> RaceSet;