Skip to content
Snippets Groups Projects
Commit ca3d99a6 authored by Andrew Waterman's avatar Andrew Waterman Committed by Jeff Law
Browse files

* cas_n.c (libat_compare_exchange): Add missing cast.

From-SVN: r217536
parent b82e9b01
No related branches found
No related tags found
No related merge requests found
2014-11-13 Andrew Waterman <waterman@cs.berkeley.edu>
* cas_n.c (libat_compare_exchange): Add missing cast.
2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
PR target/63610 PR target/63610
......
...@@ -70,7 +70,7 @@ SIZE(libat_compare_exchange) (UTYPE *mptr, UTYPE *eptr, UTYPE newval, ...@@ -70,7 +70,7 @@ SIZE(libat_compare_exchange) (UTYPE *mptr, UTYPE *eptr, UTYPE newval,
mask = -1; mask = -1;
} }
weval = *eptr << shift; weval = (UWORD)*eptr << shift;
wnewval = (UWORD)newval << shift; wnewval = (UWORD)newval << shift;
woldval = __atomic_load_n (wptr, __ATOMIC_RELAXED); woldval = __atomic_load_n (wptr, __ATOMIC_RELAXED);
do do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment