Skip to content

Commit 916d6db

Browse files
AZero13millert
authored andcommitted
i should match the bitwidth of what is being compared to
1 parent 084bf69 commit 916d6db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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. */

plugins/python/pyhelpers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ py_str_array_to_tuple_with_count(Py_ssize_t count, char * const strings[])
160160
if (py_argv == NULL)
161161
debug_return_ptr(NULL);
162162

163-
for (int i = 0; i < count; ++i) {
163+
for (Py_ssize_t i = 0; i < count; ++i) {
164164
PyObject *py_arg = PyUnicode_FromString(strings[i]);
165165
if (py_arg == NULL || PyTuple_SetItem(py_argv, i, py_arg) != 0) {
166166
Py_CLEAR(py_argv);
@@ -205,7 +205,7 @@ py_str_array_from_tuple(PyObject *py_tuple)
205205
debug_return_ptr(NULL);
206206
}
207207

208-
for (int i = 0; i < tuple_size; ++i) {
208+
for (Py_ssize_t i = 0; i < tuple_size; ++i) {
209209
PyObject *py_value = PyTuple_GetItem(py_tuple, i);
210210
if (py_value == NULL) {
211211
str_array_free(&result);

0 commit comments

Comments
 (0)