Skip to content

Commit 6edc6ab

Browse files
Aditya-132ibuclaw
andauthored
Changes as per review
Co-authored-by: Iain Buclaw <[email protected]>
1 parent b9c69d8 commit 6edc6ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

std/math/exponential.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -839,9 +839,9 @@ if (isUnsigned!F && isUnsigned!G && isUnsigned!H)
839839
{
840840
import core.int128 : Cent, mul, udivmod;
841841
const product128 = mul(Cent(a), Cent(b));
842-
Cent centRemainder;
843-
udivmod(product128, Cent(c), centRemainder);
844-
return cast(T)(centRemainder.lo);
842+
T remainder;
843+
udivmod(product128, c, remainder);
844+
return centRemainder.lo;
845845
}
846846
}
847847
else static if (T.sizeof == 4)

0 commit comments

Comments
 (0)