File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
* Copyright (c) 2010 IBM Corporation. All rights reserved.
15
15
* Copyright (c) 2014-2015 Los Alamos National Security, LLC. All rights
16
16
* reseved.
17
+ * Copyright (c) 2016 Research Organization for Information Science
18
+ * and Technology (RIST). All rights reserved.
17
19
* $COPYRIGHT$
18
20
*
19
21
* Additional copyrights may follow
@@ -66,8 +68,8 @@ typedef union opal_counted_pointer_t opal_counted_pointer_t;
66
68
static inline bool opal_update_counted_pointer (volatile opal_counted_pointer_t * addr , opal_counted_pointer_t old ,
67
69
opal_list_item_t * item )
68
70
{
69
- opal_counted_pointer_t new = {.data = {.item = item , .counter = old .data .counter + 1 }};
70
- return opal_atomic_cmpset_128 (& addr -> value , old .value , new .value );
71
+ opal_counted_pointer_t new_p = {.data = {.item = item , .counter = old .data .counter + 1 }};
72
+ return opal_atomic_cmpset_128 (& addr -> value , old .value , new_p .value );
71
73
}
72
74
73
75
#endif
You can’t perform that action at this time.
0 commit comments