[all-commits] [llvm/llvm-project] a4814b: [libc++][chrono] Fixes formatter duration.

Mark de Wever via All-commits all-commits at lists.llvm.org
Sat Jul 15 03:02:17 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a4814bdc5371c480b66f655b4a5a68b7ed07000a
      https://github.com/llvm/llvm-project/commit/a4814bdc5371c480b66f655b4a5a68b7ed07000a
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2023-07-15 (Sat, 15 Jul 2023)

  Changed paths:
    M libcxx/include/__chrono/convert_to_tm.h
    M libcxx/test/std/time/time.syn/formatter.duration.pass.cpp

  Log Message:
  -----------
  [libc++][chrono] Fixes formatter duration.

@EricWF spotted this issue in the post-commit review comments of
D134742. However the suggestion to just use chrono calculations can
result in similar issues when using small fractional seconds.

Reviewed By: EricWF, #libc

Differential Revision: https://reviews.llvm.org/D138826




More information about the All-commits mailing list