Просмотр исходного кода

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
Родитель
Сommit
34cd9490be
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      zig/sdl/hello_sdl.zig

+ 2 - 2
zig/sdl/hello_sdl.zig

@ -161,7 +161,7 @@ pub fn main() !void {
161 161
                                pos = 0;
162 162
163 163
                                num_lines = 0;
164
                                var lines = std.mem.split(result, "\n");
164
                                var lines = std.mem.split(u8, result, "\n");
165 165
                                var line = lines.next();
166 166
                                while (line != null) : (line = lines.next()) {
167 167
                                    num_lines += 1;
@ -223,7 +223,7 @@ pub fn main() !void {
223 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 225
        var i: c_int = 1;
226
        var lines = std.mem.split(result, "\n");
226
        var lines = std.mem.split(u8, result, "\n");
227 227
        var line = lines.next();
228 228
        {
229 229
            var skipped: i32 = 0;