diff options
author | Rutger Broekhoff | 2021-05-28 19:26:22 +0200 |
---|---|---|
committer | Rutger Broekhoff | 2021-05-28 19:26:22 +0200 |
commit | a3df13c38ae5dc9491657adbb632f823fd47caa5 (patch) | |
tree | ad8d1295e72cf755db3ab59126c9f1f12b72d1e0 /src/base32.zig | |
parent | c68d1064921234bf6f0f8a69b3043b765ac4ae50 (diff) | |
download | zig-nkeys-a3df13c38ae5dc9491657adbb632f823fd47caa5.tar.gz zig-nkeys-a3df13c38ae5dc9491657adbb632f823fd47caa5.zip |
Fix comment
Diffstat (limited to 'src/base32.zig')
-rw-r--r-- | src/base32.zig | 2 |
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 { | |||
236 | fn safeMulDiv(a: u64, b: u64, c: u64) u64 { | 236 | fn 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 | ||