Skip to content

Commit 11a63b7

Browse files
Merge pull request #245 from lightpanda-io/hundred-types
generate: handle more than 100 in itoa
2 parents 6e5f67c + 78467ff commit 11a63b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/generate.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ fn itoa(comptime i: u8) ![]const u8 {
2828
len = 1;
2929
} else if (i < 100) {
3030
len = 2;
31+
} else if (i < 1000) {
32+
len = 3;
3133
} else {
3234
return error.GenerateTooMuchMembers;
3335
}

0 commit comments

Comments
 (0)