allow compilation under 32 bit

This commit is contained in:
Emil Lerch 2023-09-20 14:22:09 -07:00
parent 992c1dd675
commit 0bf154f87a
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

View File

@ -367,7 +367,7 @@ fn processRequest(allocator: std.mem.Allocator, server: *std.http.Server) !void
var response_bytes: []const u8 = errbuf[0..];
if (res.request.content_length) |l|
server_request_aka_lambda_response = try res.reader().readAllAlloc(allocator, @as(usize, l));
server_request_aka_lambda_response = try res.reader().readAllAlloc(allocator, @as(usize, @intCast(l)));
log.debug(
"tid {d} (server): {d} bytes read from request",