From 94f488d1ca71dd1adffad1ffdf561a8b47db515d Mon Sep 17 00:00:00 2001 From: Nicolas Hillegeer Date: Thu, 3 Jul 2014 14:20:16 +0200 Subject: c99: remove vim_round #909 C89 did not have round(), vim emulated it with vim_round. But since we're using C99 this is not a problem anymore. --- src/nvim/ex_cmds2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/ex_cmds2.c') diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index e3024f6fb0..3158eafe65 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -848,7 +848,7 @@ void profile_divide(proftime_T *tm, int count, proftime_T *tm2) double usec = (tm->tv_sec * 1000000.0 + tm->tv_usec) / count; tm2->tv_sec = floor(usec / 1000000.0); - tm2->tv_usec = vim_round(usec - (tm2->tv_sec * 1000000.0)); + tm2->tv_usec = round(usec - (tm2->tv_sec * 1000000.0)); } } -- cgit