From: Andrew Waterman Date: Fri, 14 Nov 2014 06:05:51 +0000 (+0000) Subject: * cas_n.c (libat_compare_exchange): Add missing cast. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ca3d99a632131cd36511959a43ea4193133ef77c;p=gcc.git * cas_n.c (libat_compare_exchange): Add missing cast. From-SVN: r217536 --- diff --git a/libatomic/ChangeLog b/libatomic/ChangeLog index 609779f9845..21f4856998b 100644 --- a/libatomic/ChangeLog +++ b/libatomic/ChangeLog @@ -1,3 +1,7 @@ +2014-11-13 Andrew Waterman + + * cas_n.c (libat_compare_exchange): Add missing cast. + 2014-11-11 Francois-Xavier Coudert PR target/63610 diff --git a/libatomic/cas_n.c b/libatomic/cas_n.c index 801262d551c..a885afab7a5 100644 --- a/libatomic/cas_n.c +++ b/libatomic/cas_n.c @@ -70,7 +70,7 @@ SIZE(libat_compare_exchange) (UTYPE *mptr, UTYPE *eptr, UTYPE newval, mask = -1; } - weval = *eptr << shift; + weval = (UWORD)*eptr << shift; wnewval = (UWORD)newval << shift; woldval = __atomic_load_n (wptr, __ATOMIC_RELAXED); do