diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2026-07-05 02:50:27 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2026-07-05 03:18:50 +0000 |
| commit | 4efbcf36a0d49ab142023a767871532f515f1381 (patch) | |
| tree | b75470788ca96ff85f526372f95df46157ec15b7 | |
| parent | fe6677e7f440d1aa52de036639efc55047ab9a2b (diff) | |
libc locale/localeconv.c: use release semantic when clearing locale_changed
PR: 296410
Submitted by: Tomas Vondra <tomas@vondra.me>
MFC after: 1 week
| -rw-r--r-- | lib/libc/locale/localeconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/locale/localeconv.c b/lib/libc/locale/localeconv.c index 2cd629e8210d..3efd95fc5452 100644 --- a/lib/libc/locale/localeconv.c +++ b/lib/libc/locale/localeconv.c @@ -88,7 +88,7 @@ localeconv_l(locale_t loc) M_ASSIGN_CHAR(int_n_sep_by_space); M_ASSIGN_CHAR(int_p_sign_posn); M_ASSIGN_CHAR(int_n_sign_posn); - atomic_store_int(&loc->monetary_locale_changed, 0); + atomic_store_rel_int(&loc->monetary_locale_changed, 0); } if (atomic_load_acq_int(&loc->numeric_locale_changed) != 0) { @@ -101,7 +101,7 @@ localeconv_l(locale_t loc) N_ASSIGN_STR(decimal_point); N_ASSIGN_STR(thousands_sep); N_ASSIGN_STR(grouping); - atomic_store_int(&loc->numeric_locale_changed, 0); + atomic_store_rel_int(&loc->numeric_locale_changed, 0); } return ret; |
