From 8f5ff2ea4127c8e51ac591770fe81b44c1884baf Mon Sep 17 00:00:00 2001 From: Dan Anderson Date: Mon, 9 Mar 2026 18:06:33 -0400 Subject: [PATCH] PR#3226 Fix (#3227) Co-authored-by: KD2YCU --- mlx/export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/export.cpp b/mlx/export.cpp index 1160e8cf..21d996bd 100644 --- a/mlx/export.cpp +++ b/mlx/export.cpp @@ -169,7 +169,7 @@ T deserialize(Reader& is) { } else if constexpr (is_optional) { auto has_value = deserialize(is); if (has_value) { - return deserialize(is); + return T{deserialize(is)}; } else { return std::nullopt; }