From a3df13c38ae5dc9491657adbb632f823fd47caa5 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Fri, 28 May 2021 19:26:22 +0200 Subject: Fix comment --- src/base32.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/base32.zig') diff --git a/src/base32.zig b/src/base32.zig index 7beb43e..4e79a73 100644 --- a/src/base32.zig +++ b/src/base32.zig @@ -236,7 +236,7 @@ pub const Decoder = struct { fn safeMulDiv(a: u64, b: u64, c: u64) u64 { const q = a / c; const r = a % c; - // (a * b) + (r * b) / c; + // (a * b) / c == (a / c) * b + ((a % c) * b) / c return (q * b) + (r * b) / c; } -- cgit v1.2.3