Skip to content

Commit

Permalink
refactor: Use typed constant
Browse files Browse the repository at this point in the history
  • Loading branch information
romshark committed Mar 21, 2024
1 parent 02e8131 commit 5ddd6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jscandec.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ type stackFrame[S []byte | string] struct {

// noParentFrame uses math.MaxUint32 because the length of the decoder stack
// is very unlikely to reach 4_294_967_295.
const noParentFrame = math.MaxUint32
const noParentFrame = uint32(math.MaxUint32)

// DefaultInitOptions are to be used by default. DO NOT MUTATE.
var DefaultInitOptions = &InitOptions{
Expand Down

0 comments on commit 5ddd6bb

Please sign in to comment.