mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
refactor: follow style guide
This commit is contained in:
@@ -254,7 +254,7 @@ void profile_reset(void)
|
||||
size_t todo = functbl->ht_used;
|
||||
hashitem_T *hi = functbl->ht_array;
|
||||
|
||||
for (; todo > (size_t)0; hi++) {
|
||||
for (; todo > 0; hi++) {
|
||||
if (!HASHITEM_EMPTY(hi)) {
|
||||
todo--;
|
||||
ufunc_T *uf = HI2UF(hi);
|
||||
@@ -797,7 +797,7 @@ void script_line_start(void)
|
||||
if (si->sn_prof_on && SOURCING_LNUM >= 1) {
|
||||
// Grow the array before starting the timer, so that the time spent
|
||||
// here isn't counted.
|
||||
(void)ga_grow(&si->sn_prl_ga, SOURCING_LNUM - si->sn_prl_ga.ga_len);
|
||||
ga_grow(&si->sn_prl_ga, SOURCING_LNUM - si->sn_prl_ga.ga_len);
|
||||
si->sn_prl_idx = SOURCING_LNUM - 1;
|
||||
while (si->sn_prl_ga.ga_len <= si->sn_prl_idx
|
||||
&& si->sn_prl_ga.ga_len < si->sn_prl_ga.ga_maxlen) {
|
||||
|
Reference in New Issue
Block a user