Parcourir la Source

Fix compilation issues (I think)

I think this is from the switch to a nightly version of Zig, but not
sure.  Anyways, with this it compiles.
Luna Stadler 4 ans auparavant
Parent
commit
34cd9490be
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      zig/sdl/hello_sdl.zig

+ 2 - 2
zig/sdl/hello_sdl.zig

161
                                pos = 0;
161
                                pos = 0;
162
162
163
                                num_lines = 0;
163
                                num_lines = 0;
164
                                var lines = std.mem.split(result, "\n");
164
                                var lines = std.mem.split(u8, result, "\n");
165
                                var line = lines.next();
165
                                var line = lines.next();
166
                                while (line != null) : (line = lines.next()) {
166
                                while (line != null) : (line = lines.next()) {
167
                                    num_lines += 1;
167
                                    num_lines += 1;
223
        _ = c.SDL_RenderCopy(renderer, texture, null, &c.SDL_Rect{ .x = 0, .y = 0, .w = @intCast(c_int, msg.len) * glyph_width, .h = glyph_height });
223
        _ = c.SDL_RenderCopy(renderer, texture, null, &c.SDL_Rect{ .x = 0, .y = 0, .w = @intCast(c_int, msg.len) * glyph_width, .h = glyph_height });
224
224
225
        var i: c_int = 1;
225
        var i: c_int = 1;
226
        var lines = std.mem.split(result, "\n");
226
        var lines = std.mem.split(u8, result, "\n");
227
        var line = lines.next();
227
        var line = lines.next();
228
        {
228
        {
229
            var skipped: i32 = 0;
229
            var skipped: i32 = 0;