mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
Merge pull request #245 from lightpanda-io/hundred-types
generate: handle more than 100 in itoa
This commit is contained in:
@@ -28,6 +28,8 @@ fn itoa(comptime i: u8) ![]const u8 {
|
||||
len = 1;
|
||||
} else if (i < 100) {
|
||||
len = 2;
|
||||
} else if (i < 1000) {
|
||||
len = 3;
|
||||
} else {
|
||||
return error.GenerateTooMuchMembers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user