32 bit support
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Emil Lerch 2022-01-20 12:31:45 -08:00
parent 691a32d719
commit d4c9f22316
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
3 changed files with 4 additions and 6 deletions

View File

@ -18,12 +18,10 @@ This is for x86_linux. Tested targets:
* x86_64-linux * x86_64-linux
* riscv64-linux * riscv64-linux
* aarch64-linux * aarch64-linux
* x86_64 Windows * x86_64-windows
Tested/not working:
* arm-linux * arm-linux
## Building ## Building
`zig build` should work. It will build the code generation project, run `zig build` should work. It will build the code generation project, run

View File

@ -421,7 +421,7 @@ fn buildPath(allocator: std.mem.Allocator, raw_uri: []const u8, comptime ActionR
// const writer = buffer.writer(); // const writer = buffer.writer();
defer buffer.deinit(); defer buffer.deinit();
var in_var = false; var in_var = false;
var start: u64 = 0; var start: usize = 0;
for (raw_uri) |c, inx| { for (raw_uri) |c, inx| {
switch (c) { switch (c) {
'{' => { '{' => {

View File

@ -3,7 +3,7 @@ const expectEqualStrings = std.testing.expectEqualStrings;
pub fn snakeToCamel(allocator: std.mem.Allocator, name: []const u8) ![]u8 { pub fn snakeToCamel(allocator: std.mem.Allocator, name: []const u8) ![]u8 {
var utf8_name = (std.unicode.Utf8View.init(name) catch unreachable).iterator(); var utf8_name = (std.unicode.Utf8View.init(name) catch unreachable).iterator();
var target_inx: u64 = 0; var target_inx: usize = 0;
var previous_ascii: u8 = 0; var previous_ascii: u8 = 0;
// A single word will take the entire length plus our sentinel // A single word will take the entire length plus our sentinel
const rc = try allocator.alloc(u8, name.len + 1); const rc = try allocator.alloc(u8, name.len + 1);