summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-10 20:10:44 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-10 20:10:44 +0200
commita2e14fc764c306cc33fe174707756be70f883319 (patch)
tree65543c6ab65e37ffb103689045600c18a62e84dc /src/ex_cmds2.c
parent0bdda37fb4b8118ec4bd797eddca9eaf5d3b381d (diff)
updated for version 7.3.1159v7.3.1159
Problem: The round() function is not always available. (Christ van Willegen) Solution: Use the solution from f_round().
Diffstat (limited to 'src/ex_cmds2.c')
-rw-r--r--src/ex_cmds2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index 66b7e4e167..353ae8981f 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -982,7 +982,7 @@ profile_divide(tm, count, tm2)
double usec = (tm->tv_sec * 1000000.0 + tm->tv_usec) / count;
tm2->tv_sec = floor(usec / 1000000.0);
- tm2->tv_usec = round(usec - (tm2->tv_sec * 1000000.0));
+ tm2->tv_usec = vim_round(usec - (tm2->tv_sec * 1000000.0));
# endif
}
}