aboutsummaryrefslogtreecommitdiff
path: root/lib/std/crypto/phc_encoding.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-01 15:52:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-01 15:52:54 -0700
commitc89dd15e1be4959800dc7092d7dd4375253db7bc (patch)
treeca184ae53592efa21e67128a5f891d642d7f1118 /lib/std/crypto/phc_encoding.zig
parent5466e87fce581f2ef90ac23bb80b1dbc05836fc6 (diff)
parent2360f8c490f3ec684ed64ff28e8c1fade249070b (diff)
downloadzig-c89dd15e1be4959800dc7092d7dd4375253db7bc.tar.gz
zig-c89dd15e1be4959800dc7092d7dd4375253db7bc.zip
Merge remote-tracking branch 'origin/master' into llvm14
Diffstat (limited to 'lib/std/crypto/phc_encoding.zig')
-rw-r--r--lib/std/crypto/phc_encoding.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/crypto/phc_encoding.zig b/lib/std/crypto/phc_encoding.zig
index 56fa76b5c0..69324dc5b3 100644
--- a/lib/std/crypto/phc_encoding.zig
+++ b/lib/std/crypto/phc_encoding.zig
@@ -41,7 +41,7 @@ pub fn BinValue(comptime max_len: usize) type {
}
/// Return the slice containing the actual value.
- pub fn constSlice(self: Self) []const u8 {
+ pub fn constSlice(self: *const Self) []const u8 {
return self.buf[0..self.len];
}
@@ -52,7 +52,7 @@ pub fn BinValue(comptime max_len: usize) type {
self.len = len;
}
- fn toB64(self: Self, buf: []u8) ![]const u8 {
+ fn toB64(self: *const Self, buf: []u8) ![]const u8 {
const value = self.constSlice();
const len = B64Encoder.calcSize(value.len);
if (len > buf.len) return Error.NoSpaceLeft;