diff options
Diffstat (limited to 'src/lib/libc/stdlib/div.c')
-rw-r--r-- | src/lib/libc/stdlib/div.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/div.c b/src/lib/libc/stdlib/div.c index beaa428c7a..5e6164f0bb 100644 --- a/src/lib/libc/stdlib/div.c +++ b/src/lib/libc/stdlib/div.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: div.c,v 1.6 2015/09/13 08:31:47 guenther Exp $ */ | 1 | /* $OpenBSD: div.c,v 1.7 2022/12/27 17:10:06 jmc Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1990 Regents of the University of California. | 3 | * Copyright (c) 1990 Regents of the University of California. |
4 | * All rights reserved. | 4 | * All rights reserved. |
@@ -46,7 +46,7 @@ div(int num, int denom) | |||
46 | * words, we should always truncate the quotient towards | 46 | * words, we should always truncate the quotient towards |
47 | * 0, never -infinity. | 47 | * 0, never -infinity. |
48 | * | 48 | * |
49 | * Machine division and remainer may work either way when | 49 | * Machine division and remainder may work either way when |
50 | * one or both of n or d is negative. If only one is | 50 | * one or both of n or d is negative. If only one is |
51 | * negative and r.quot has been truncated towards -inf, | 51 | * negative and r.quot has been truncated towards -inf, |
52 | * r.rem will have the same sign as denom and the opposite | 52 | * r.rem will have the same sign as denom and the opposite |