simplify io.zig

leesongun
Nov 10, 2022, 1:00 PM
KB3B5VF4AWJKJE55OZM4FPVLLUBBFZ3R2XNYPODLL6IRGGFN7KJAC

Dependencies

Change contents

  • replacement in src/io.zig at line 13
    [2.3578][2.3578:3704]()
    while (true) {
    var buff: [1]u8 = undefined;
    if (os.read(0, &buff, 1) == 0)
    return curdir ^ 2;
    [2.3578]
    [2.3704]
    var buff: [1]u8 = .{0xFF};
    while (os.read(0, &buff, 1) != 0) {
  • edit in src/io.zig at line 25
    [2.4052]
    [2.4052]
    return curdir ^ 2;