diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 01:52:35 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-26 01:52:35 +0000 |
commit | fc891c1907eb4123f5f2574eb15e4cce22537c79 (patch) | |
tree | 5ae03cab57b9769b6083598946389a210f738a86 /sys/ddb/db_expr.c | |
parent | ee7ae58a459456663a2665993e954aedbfb64453 (diff) | |
download | src-fc891c1907eb4123f5f2574eb15e4cce22537c79.tar.gz src-fc891c1907eb4123f5f2574eb15e4cce22537c79.zip |
ddb: Make use of our roundup() macro when available.
Notes
Notes:
svn path=/head/; revision=298610
Diffstat (limited to 'sys/ddb/db_expr.c')
-rw-r--r-- | sys/ddb/db_expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_expr.c b/sys/ddb/db_expr.c index 9a568a489de0..85886762f37c 100644 --- a/sys/ddb/db_expr.c +++ b/sys/ddb/db_expr.c @@ -154,7 +154,7 @@ db_mult_expr(db_expr_t *valuep) else if (t == tPCT) lhs %= rhs; else - lhs = ((lhs+rhs-1)/rhs)*rhs; + lhs = roundup(lhs, rhs); } t = db_read_token(); } |