From 002cadb27d53409aeef8b5fcaa4df5db59b260e0 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 19 Nov 2024 21:30:05 +0100 Subject: [PATCH] Remove unneeded label --- lib/std/crypto/bcrypt.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/std/crypto/bcrypt.zig b/lib/std/crypto/bcrypt.zig index 75b73dadb5..80057de1e6 100644 --- a/lib/std/crypto/bcrypt.zig +++ b/lib/std/crypto/bcrypt.zig @@ -603,9 +603,9 @@ pub fn opensshKdf(pass: []const u8, salt: []const u8, key: []u8, rounds_log: u32 for (&tmp, tmp2) |*o, t| o.* ^= t; } amt = @min(amt, key_remainder); - key_remainder -= rem: for (0..amt) |i| { + key_remainder -= for (0..amt) |i| { const dest = i * stride + (count - 1); - if (dest >= key.len) break :rem i; + if (dest >= key.len) break i; key[dest] = tmp[i]; } else amt; }