Skip to content

Commit

Permalink
ACTUALLY update to Zig 0.12.0-dev.1769+bf5ab5451
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley committed Dec 1, 2023
1 parent 40479cd commit 551d754
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion game/music.zig
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub fn readFromFile(allocator: std.mem.Allocator, path: std.fs.Dir, file: std.fs
self.fumen.* = try Fumen.readFromFile(allocator, fumen_file, path);
errdefer self.fumen.deinit();

var ranking_path = try path.realpathAlloc(allocator, self.ranking_file_name);
const ranking_path = try path.realpathAlloc(allocator, self.ranking_file_name);
defer allocator.free(ranking_path);

var ranking_file = try std.fs.openFileAbsolute(ranking_path, .{});
Expand Down
4 changes: 2 additions & 2 deletions game/ranking.zig
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn getUTypingDate() UTypingDate {
//Get the year and day
var year_day = epoch_seconds.getEpochDay().calculateYearDay();
//Get the year and month
var month_and_day = year_day.calculateMonthDay();
const month_and_day = year_day.calculateMonthDay();

return .{
.day = month_and_day.day_index,
Expand Down Expand Up @@ -120,7 +120,7 @@ pub fn readRanking(file: std.fs.File) !Self {
}

//In version 5, we now only store the exact number of scores, rather than all ranking_len scores.
var ranking_size: usize = if (version >= 5) @intCast(try reader.readInt(i32, .little)) else ranking_len;
const ranking_size: usize = if (version >= 5) @intCast(try reader.readInt(i32, .little)) else ranking_len;

//Iterate through all the rankings and read the scores
for (0..ranking_size) |i| {
Expand Down

0 comments on commit 551d754

Please sign in to comment.