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.
This commit is contained in:
Nicolas Hillegeer
2014-07-03 14:20:16 +02:00
committed by Justin M. Keyes
parent 958b3c5ffb
commit 94f488d1ca
2 changed files with 2 additions and 11 deletions

View File

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