Mercurial > hg > nnchat
changeset 540:658c188101a6
Silence a warning by typecasting to correct type from void.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 11 Nov 2012 07:33:31 +0200 |
parents | 8a52651bb88d |
children | 44f67ec5e945 |
files | ui.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ui.c Sun Nov 11 07:33:17 2012 +0200 +++ b/ui.c Sun Nov 11 07:33:31 2012 +0200 @@ -347,7 +347,7 @@ for (y = scrHeight - 4, offs = buf->size - 1 - currWin->pos; offs >= 0 && y > 0; offs--) { - nn_line_t *line = buf->data[offs]; + nn_line_t *line = (nn_line_t *) buf->data[offs]; if (line != NULL) { const int *s = line->buf;