Skip to content

Commit 655c5ff

Browse files
committed
Fill in missing unsafe markers
1 parent 01360d1 commit 655c5ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/core/FloatingPointToString.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public func _float16ToStringImpl(
158158
_unchecked: textBuffer,
159159
count: Int(bufferLength))
160160
for i in 0..<Int(bufferLength) {
161-
buffer[unchecked: i] = 0x30
161+
unsafe buffer[unchecked: i] = 0x30
162162
}
163163
let textRange = _Float16ToASCII(value: value, buffer: &buffer)
164164
let textLength = textRange.upperBound - textRange.lowerBound
@@ -450,7 +450,7 @@ internal func _float32ToStringImpl(
450450
_unchecked: textBuffer,
451451
count: Int(bufferLength))
452452
for i in 0..<Int(bufferLength) {
453-
buffer[unchecked: i] = 0x30
453+
unsafe buffer[unchecked: i] = 0x30
454454
}
455455
let textRange = _Float32ToASCII(value: value, buffer: &buffer)
456456
let textLength = textRange.upperBound - textRange.lowerBound
@@ -701,7 +701,7 @@ internal func _float64ToStringImpl(
701701
_unchecked: textBuffer,
702702
count: Int(bufferLength))
703703
for i in 0..<Int(bufferLength) {
704-
buffer[unchecked: i] = 0x30
704+
unsafe buffer[unchecked: i] = 0x30
705705
}
706706
let textRange = _Float64ToASCII(value: value, buffer: &buffer)
707707
let textLength = textRange.upperBound - textRange.lowerBound
@@ -1207,7 +1207,7 @@ internal func _float80ToStringImpl(
12071207
_unchecked: textBuffer,
12081208
count: Int(bufferLength))
12091209
for i in 0..<Int(bufferLength) {
1210-
buffer[unchecked: i] = 0x30
1210+
unsafe buffer[unchecked: i] = 0x30
12111211
}
12121212
let textRange = _Float80ToASCII(value: value, buffer: &buffer)
12131213
let textLength = textRange.upperBound - textRange.lowerBound

0 commit comments

Comments
 (0)