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:
Ian Lance Taylor 2025-02-03 09:50:38 -08:00 committed by Gopher Robot
parent 77f5ecef3a
commit 82337de9f2
1 changed files with 1 additions and 1 deletions

View 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"