From 0271c65ca259b78c72654af618cf07e79dcc3b66 Mon Sep 17 00:00:00 2001 From: xushiwei Date: Tue, 18 Jun 2024 01:25:57 +0800 Subject: [PATCH] c: c.Int/Uint not alias C.int/uint --- c/c.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/c/c.go b/c/c.go index ed2d4cff..0b39ed8b 100644 --- a/c/c.go +++ b/c/c.go @@ -26,8 +26,6 @@ const ( type ( Char = int8 - Int = C.int - Uint = C.uint Long = int32 Ulong = uint32 LongLong = int64 @@ -38,6 +36,11 @@ type ( FilePtr = unsafe.Pointer ) +type ( + Int C.int + Uint C.uint +) + type integer interface { ~int | ~uint | ~uintptr | ~int32 | ~uint32 | ~int64 | ~uint64 }