From f65358521fe9c28afdc0f20fe509da2337a37943 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Mon, 17 Nov 2025 10:55:28 -0800 Subject: [PATCH] Properly initialize buffer when called via legacy ABI Resolves #85539 --- stdlib/public/core/FloatingPointToString.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/stdlib/public/core/FloatingPointToString.swift b/stdlib/public/core/FloatingPointToString.swift index 8bd72301f0a0e..ee91d296277a0 100644 --- a/stdlib/public/core/FloatingPointToString.swift +++ b/stdlib/public/core/FloatingPointToString.swift @@ -157,6 +157,9 @@ public func _float16ToStringImpl( var buffer = unsafe MutableSpan( _unchecked: textBuffer, count: Int(bufferLength)) + for i in 0..( _unchecked: textBuffer, count: Int(bufferLength)) + for i in 0..( _unchecked: textBuffer, count: Int(bufferLength)) + for i in 0..( _unchecked: textBuffer, count: Int(bufferLength)) + for i in 0..