Skip to content

Commit

Permalink
fix latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jiacai2050 committed Jun 24, 2023
1 parent c3d5565 commit 5de8771
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
.version = "0.1.0",
.dependencies = .{
.simargs = .{
.url = "https://github.com/jiacai2050/simargs/archive/2f0c722.tar.gz",
.hash = "12205afa92b21cb61baa5e0adba431155d04e2c064aa104b19c4dad75752d42519b6",
.url = "https://github.com/jiacai2050/simargs/archive/2ac9368.tar.gz",
.hash = "1220c7f602de51855b241b771058255d5023e156c2d8df93c3cf0f6ec3248e484f95",
},
.@"table-helper" = .{
.url = "https://github.com/jiacai2050/table-helper/archive/f0c8eb9.tar.gz",
Expand Down
2 changes: 1 addition & 1 deletion src/tree.zig
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const PREFIX_ARR = [_][4][]const u8{ // mode -> position
};

fn getPrefix(mode: Mode, pos: Position) []const u8 {
return PREFIX_ARR[@enumToInt(mode)][@enumToInt(pos)];
return PREFIX_ARR[@intFromEnum(mode)][@intFromEnum(pos)];
}

pub const WalkOptions = struct {
Expand Down
2 changes: 1 addition & 1 deletion src/util.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub const StringUtil = struct {
const SIZE_UNIT = [_][]const u8{ "B", "K", "M", "G", "T" };

pub fn humanSize(allocator: mem.Allocator, n: u64) ![]const u8 {
var remaining = @intToFloat(f64, n);
var remaining = @floatFromInt(f64, n);
var i: usize = 0;
while (remaining > 1024) {
remaining /= 1024;
Expand Down

0 comments on commit 5de8771

Please sign in to comment.