ext: integer limit values
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m37s
Test / Hakurei (push) Successful in 3m36s
Test / ShareFS (push) Successful in 3m44s
Test / Sandbox (race detector) (push) Successful in 4m58s
Test / Hakurei (race detector) (push) Successful in 54s
Test / Flake checks (push) Successful in 1m23s
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m37s
Test / Hakurei (push) Successful in 3m36s
Test / ShareFS (push) Successful in 3m44s
Test / Sandbox (race detector) (push) Successful in 4m58s
Test / Hakurei (race detector) (push) Successful in 54s
Test / Flake checks (push) Successful in 1m23s
For portably using C integers without cgo. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user