Skip to content

Commit fc60d7b

Browse files
committed
I should be size_t
It is passed as a size_t, used as one, etc. This avoiding of truncation is good.
1 parent 14c2046 commit fc60d7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/iolog/iolog_filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ iolog_pwfilt_run(void *vhandle, int event, const char *buf,
211211
break;
212212
case IO_EVENT_TTYIN:
213213
if (handle->is_filtered) {
214-
unsigned int i;
214+
size_t i;
215215

216216
for (i = 0; i < len; i++) {
217217
/* We will stop filtering after reaching cr/nl. */

0 commit comments

Comments
 (0)