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 0c078e8 commit ca9113cCopy full SHA for ca9113c
test/embedded/dependencies-no-allocations.swift
@@ -27,17 +27,18 @@
27
// UNSUPPORTED: OS=linux-gnu && CPU=aarch64
28
29
@_silgen_name("putchar")
30
-func putchar(_: UInt8)
+@discardableResult
31
+func putchar(_: CInt) -> CInt
32
33
public func print(_ s: StaticString, terminator: StaticString = "\n") {
34
var p = s.utf8Start
35
while p.pointee != 0 {
- putchar(p.pointee)
36
+ putchar(CInt(p.pointee))
37
p += 1
38
}
39
p = terminator.utf8Start
40
41
42
43
44
0 commit comments