projects
/
model-checker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
really should be using a type that is big enough for all commonly used data types...
[model-checker.git]
/
libatomic.cc
diff --git
a/libatomic.cc
b/libatomic.cc
index 531731966a862cacd2f704fa26163f6851cd6d52..4d2ec553fcb2cb6d61de9942d853a1e9ef39bae6 100644
(file)
--- a/
libatomic.cc
+++ b/
libatomic.cc
@@
-13,7
+13,7
@@
int atomic_load_explicit(struct atomic_object *obj, memory_order order)
{
DBG();
model->switch_to_master(new ModelAction(ATOMIC_READ, order, obj));
- return thread_current()->get_return_value();
+ return
(int)
thread_current()->get_return_value();
}
void atomic_init(struct atomic_object *obj, int value)