From 1c2d5f6b57af2bb05759647d6e6ff1aa8ff47de0 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 17 Mar 2026 14:09:38 +0900 Subject: ext: integer limit values For portably using C integers without cgo. Signed-off-by: Ophestra --- ext/ext.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ext/ext.go') diff --git a/ext/ext.go b/ext/ext.go index 12fd2550..2667f8e4 100644 --- a/ext/ext.go +++ b/ext/ext.go @@ -4,6 +4,7 @@ package ext import ( "encoding/json" "iter" + "math" "strconv" ) @@ -15,6 +16,12 @@ type ( Int = int32 ) +// Integer limit values. +const ( + MaxUint = math.MaxUint32 + MaxInt = math.MaxInt32 +) + // SyscallNum represents an architecture-specific, Linux syscall number. type SyscallNum Int -- cgit v1.3.1