]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
patches: fix typo in atomic_compare_exchange_strong_explicit
authorHugo Lefeuvre <hugo.lefeuvre@neclab.eu>
Wed, 26 Feb 2020 15:32:20 +0000 (16:32 +0100)
committerFelipe Huici <felipe.huici@neclab.eu>
Tue, 10 Mar 2020 07:47:59 +0000 (08:47 +0100)
Fix 'expeced' typo. This breaks builds relying on
atomic_compare_exchange_strong_explicit.

Signed-off-by: Hugo Lefeuvre <hugo.lefeuvre@neclab.eu>
Reviewed-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
patches/0009-stdatomic.h-Fix-atomic_-definitions.patch

index 6cb8a828d9c01794f96552a53366e0734dfd1a5a..2553e4242c1c6a44bc563cab3c061f36e817ee1c 100644 (file)
@@ -34,7 +34,7 @@ index 09c0cf7..daa1969 100644
 +      __auto_type __atomic_compare_exchange_ptr = (object);                           \
 +      __typeof__ (*__atomic_compare_exchange_ptr) __atomic_compare_exchange_tmp       \
 +      = (desired);                                                                    \
-+      __atomic_compare_exchange (__atomic_compare_exchange_ptr, (expeced),            \
++      __atomic_compare_exchange (__atomic_compare_exchange_ptr, (expected),           \
 +              &__atomic_compare_exchange_tmp,                                         \
 +              0, (success), (failure));                                               \
 +  })