diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2022-11-16 20:47:39 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2022-11-16 20:52:53 +0000 |
commit | dbdce6adb748b95be219f2f5fb97f844a0f9b840 (patch) | |
tree | def836ff6a6a49cf41adbae746627c12e35efaa7 /libstdc++-v3 | |
parent | 629897ed80512a8618e08673c03d8482cbc42eef (diff) | |
download | gcc-dbdce6adb748b95be219f2f5fb97f844a0f9b840.zip gcc-dbdce6adb748b95be219f2f5fb97f844a0f9b840.tar.gz gcc-dbdce6adb748b95be219f2f5fb97f844a0f9b840.tar.bz2 |
libstdc++: Fix dumb typos in ALT128 support in <format> [PR107720]
This is only a partial fix for the PR.
libstdc++-v3/ChangeLog:
PR libstdc++/107720
* include/std/format (__format::_Arg_t): Fix typo in enumerator
name.
(_Arg_value::_S_get): Fix missing semi-colons.
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/include/std/format | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format index 995b05c..1afcd04 100644 --- a/libstdc++-v3/include/std/format +++ b/libstdc++-v3/include/std/format @@ -2578,7 +2578,7 @@ namespace __format #ifdef _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT _Arg_next_value_, _Arg_f128 = _Arg_ldbl, - _Arg_ibm128 = _Args_next_value_, + _Arg_ibm128 = _Arg_next_value_, #else _Arg_f128, #endif @@ -2916,9 +2916,9 @@ namespace __format #else // Don't use _Arg_ldbl for this target, it's ambiguous. else if constexpr (is_same_v<_Tp, __ibm128>) - return _Arg_ibm128 + return _Arg_ibm128; else if constexpr (is_same_v<_Tp, __ieee128>) - return _Arg_f128 + return _Arg_f128; #endif else if constexpr (is_same_v<_Tp, const _CharT*>) return _Arg_str; |