mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
generate: return const string in itoa utils
Signed-off-by: Francis Bouvier <francis.bouvier@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ const builtin = @import("builtin");
|
|||||||
// Utils
|
// Utils
|
||||||
// -----
|
// -----
|
||||||
|
|
||||||
fn itoa(comptime i: u8) ![]u8 {
|
fn itoa(comptime i: u8) ![]const u8 {
|
||||||
var len: usize = undefined;
|
var len: usize = undefined;
|
||||||
if (i < 10) {
|
if (i < 10) {
|
||||||
len = 1;
|
len = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user