]> Cypherpunks repositories - gostls13.git/commitdiff
test/issue71226: add cast to avoid clang error
authorIan Lance Taylor <iant@golang.org>
Mon, 3 Feb 2025 17:50:38 +0000 (09:50 -0800)
committerGopher Robot <gobot@golang.org>
Mon, 3 Feb 2025 18:14:38 +0000 (10:14 -0800)
Change-Id: I2d8ecb7b5f48943697d454d09947fdb1817809d0
Reviewed-on: https://go-review.googlesource.com/c/go/+/646295
TryBot-Bypass: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>

test/fixedbugs/issue71226.go

index 704814b6013b4577045952c77a85d54a9d83f3de..5df05e3b29c86d3b3a3e40b04e8916dd14560d78 100644 (file)
@@ -14,7 +14,7 @@ package main
 #include <stdio.h>
 
 static void CFn(_GoString_ gostr) {
-       printf("%.*s\n", _GoStringLen(gostr), _GoStringPtr(gostr));
+       printf("%.*s\n", (int)(_GoStringLen(gostr)), _GoStringPtr(gostr));
 }
 */
 import "C"