Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use correct byte length for default
  • Loading branch information
rvagg committed Feb 7, 2024
commit 27dc112779fe1bb467e7332bf2dbdacb7a919978
2 changes: 1 addition & 1 deletion gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (g Gen) maxArrayLength() int {

func (g Gen) maxByteLength() int {
if g.MaxByteLength == 0 {
return MaxLength
return ByteArrayMaxLen
}
return g.MaxByteLength
}
Expand Down
16 changes: 8 additions & 8 deletions testing/cbor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions testing/cbor_map_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.