Skip to content

Commit 26c1067

Browse files
committed
[embedded] Adjust test/embedded/dependencies-random.swift for new print
1 parent 3cf84be commit 26c1067

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/embedded/dependencies-random.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,18 @@
3131
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
3232

3333
@_silgen_name("putchar")
34-
func putchar(_: UInt8)
34+
@discardableResult
35+
func putchar(_: CInt) -> CInt
3536

3637
public func print(_ s: StaticString, terminator: StaticString = "\n") {
3738
var p = s.utf8Start
3839
while p.pointee != 0 {
39-
putchar(p.pointee)
40+
putchar(CInt(p.pointee))
4041
p += 1
4142
}
4243
p = terminator.utf8Start
4344
while p.pointee != 0 {
44-
putchar(p.pointee)
45+
putchar(CInt(p.pointee))
4546
p += 1
4647
}
4748
}

0 commit comments

Comments
 (0)