backlog: cleanup

This commit is contained in:
Boris Faure 2019-11-24 19:57:48 +01:00
parent 787e16f215
commit 1488b41342
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: EAA9CD729F522998
1 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ termpty_save_free(Termpty *ty, Termsave *ts)
}
free(ts->cells);
ts->cells = NULL;
_accounting_change(-1 * ts->w * sizeof(Termcell));
_accounting_change((-1) * (int)(ts->w * sizeof(Termcell)));
ts->w = 0;
}
@ -127,7 +127,7 @@ termpty_backlog_free(Termpty *ty)
for (i = 0; i < ty->backsize; i++)
termpty_save_free(ty, &ty->back[i]);
_accounting_change(-1 * sizeof(Termsave) * ty->backsize);
_accounting_change((-1) * (int)(sizeof(Termsave) * ty->backsize));
free(ty->back);
ty->back = NULL;
}