0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.3.1159

Problem:    The round() function is not always available. (Christ van
            Willegen)
Solution:   Use the solution from f_round().
This commit is contained in:
Bram Moolenaar
2013-06-10 20:10:44 +02:00
parent 0bdda37fb4
commit a2e14fc764
4 changed files with 19 additions and 6 deletions

View File

@@ -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
}
}