mirror of
https://github.com/neovim/neovim.git
synced 2025-09-25 04:28:33 +00:00
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:

committed by
Justin M. Keyes

parent
958b3c5ffb
commit
94f488d1ca
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user