I learned about std.math.maxInt
This commit is contained in:
parent
15e72ea326
commit
851aec3a97
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ pub fn entityQueryResult(request: *jetzig.Request, comptime query: GeneratedQuer
|
|||
var result = try request.repo.connection.?.postgresql.connection.queryOpts(query.query, .{}, .{ .allocator = request.allocator, .column_names = true });
|
||||
var out: *jetzig.Data.Value = try Data.object();
|
||||
var mapper = result.mapper(PeakResult, .{ .dupe = true, .allocator = request.allocator });
|
||||
var rank = comptime (std.math.pow(u64, 2, 63) - 1);
|
||||
var rank = comptime (std.math.maxInt(u64));
|
||||
var date: []const u8 = undefined;
|
||||
var scrobbles = std.AutoArrayHashMap(i64, u32).init(request.allocator);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue