[libc-commits] [libc] change the return value type of mktime_internal to time_t (PR #132231)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Sun Mar 23 08:21:11 PDT 2025


================
@@ -27,20 +27,21 @@ int64_t mktime_internal(const tm *tm_out) {
   if (sizeof(time_t) == 4 &&
       tm_year_from_base >= time_constants::END_OF32_BIT_EPOCH_YEAR) {
     if (tm_year_from_base > time_constants::END_OF32_BIT_EPOCH_YEAR)
-      return time_utils::out_of_range();
+      return {};
----------------
jhuber6 wrote:

```suggestion
      return cpp::nullpt_t;
```
And below.

https://github.com/llvm/llvm-project/pull/132231


More information about the libc-commits mailing list