We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cf84be commit 26c1067Copy full SHA for 26c1067
test/embedded/dependencies-random.swift
@@ -31,17 +31,18 @@
31
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
32
33
@_silgen_name("putchar")
34
-func putchar(_: UInt8)
+@discardableResult
35
+func putchar(_: CInt) -> CInt
36
37
public func print(_ s: StaticString, terminator: StaticString = "\n") {
38
var p = s.utf8Start
39
while p.pointee != 0 {
- putchar(p.pointee)
40
+ putchar(CInt(p.pointee))
41
p += 1
42
}
43
p = terminator.utf8Start
44
45
46
47
48
0 commit comments