mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.crypto.Certificate.Bundle: fix 32-bit build
This commit is contained in:
parent
5b8b5f2505
commit
a1f6a08dcb
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ pub fn addCertsFromFile(
|
|||
const needed_capacity = std.math.cast(u32, decoded_size_upper_bound + size) orelse
|
||||
return error.CertificateAuthorityBundleTooBig;
|
||||
try cb.bytes.ensureUnusedCapacity(gpa, needed_capacity);
|
||||
const end_reserved = cb.bytes.items.len + decoded_size_upper_bound;
|
||||
const end_reserved = @intCast(u32, cb.bytes.items.len + decoded_size_upper_bound);
|
||||
const buffer = cb.bytes.allocatedSlice()[end_reserved..];
|
||||
const end_index = try file.readAll(buffer);
|
||||
const encoded_bytes = buffer[0..end_index];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue