aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/special/compiler_rt/index.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/special/compiler_rt/index.zig b/std/special/compiler_rt/index.zig
index c2486a3d59..0d2e1325ab 100644
--- a/std/special/compiler_rt/index.zig
+++ b/std/special/compiler_rt/index.zig
@@ -139,7 +139,7 @@ export fn __udivmoddi4(a: du_int, b: du_int, maybe_rem: ?&du_int) -> du_int {
// K X
// ---
// 0 K
- sr = 1 + n_uword_bits + @clz(su_int(d[low])) - @clz(su_int(n[high]));
+ sr = 1 + n_uword_bits + c_uint(@clz(su_int(d[low]))) - c_uint(@clz(su_int(n[high])));
// 2 <= sr <= n_udword_bits - 1
// q.all = n.all << (n_udword_bits - sr);
// r.all = n.all >> sr;