aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2021-05-28 19:26:22 +0200
committerLibravatar Rutger Broekhoff2021-05-28 19:26:22 +0200
commita3df13c38ae5dc9491657adbb632f823fd47caa5 (patch)
treead8d1295e72cf755db3ab59126c9f1f12b72d1e0 /src
parentc68d1064921234bf6f0f8a69b3043b765ac4ae50 (diff)
downloadzig-nkeys-a3df13c38ae5dc9491657adbb632f823fd47caa5.tar.gz
zig-nkeys-a3df13c38ae5dc9491657adbb632f823fd47caa5.zip
Fix comment
Diffstat (limited to 'src')
-rw-r--r--src/base32.zig2
1 files changed, 1 insertions, 1 deletions
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 {
236fn safeMulDiv(a: u64, b: u64, c: u64) u64 { 236fn safeMulDiv(a: u64, b: u64, c: u64) u64 {
237 const q = a / c; 237 const q = a / c;
238 const r = a % c; 238 const r = a % c;
239 // (a * b) + (r * b) / c; 239 // (a * b) / c == (a / c) * b + ((a % c) * b) / c
240 return (q * b) + (r * b) / c; 240 return (q * b) + (r * b) / c;
241} 241}
242 242