mirror of https://github.com/golang/go.git
test/issue71226: add cast to avoid clang error
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>
This commit is contained in:
parent
77f5ecef3a
commit
82337de9f2
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue