[committed] libstdc++: Fix typo in operator used in __pack_ints [PR122864]

Tomasz Kamiński tkaminsk@redhat.com
Wed Nov 26 13:34:36 GMT 2025


`<=` was used instead of `<<`, this was detected by clang warning.

	PR libstdc++/122864

libstdc++-v3/ChangeLog:

	* include/std/chrono (chrono::__pack_ints): Replace `<=`
	with `<<`.
---
Pushed to trunk.

 libstdc++-v3/include/std/chrono | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/std/chrono b/libstdc++-v3/include/std/chrono
index 8dd79799a96..3e0cf42e549 100644
--- a/libstdc++-v3/include/std/chrono
+++ b/libstdc++-v3/include/std/chrono
@@ -3355,7 +3355,7 @@ namespace __detail
        }());
 
        _ResT __res = __v1;
-       ((__res = (__res <= (sizeof(_Ts) * __CHAR_BIT__) | _ResT(__vs))), ...);
+       ((__res = (__res << (sizeof(_Ts) * __CHAR_BIT__) | _ResT(__vs))), ...);
        return __res;
      }
     
-- 
2.51.1



More information about the Libstdc++ mailing list