From ca84af553cbaae45b17cce04d457b2e61cc4277c Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Mon, 23 Oct 2017 18:05:31 -0400 Subject: Cleanup signed/unsigned mismatches, mostly in loop counters --- ks_attribute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ks_attribute.c') diff --git a/ks_attribute.c b/ks_attribute.c index ec674f5..1eefefb 100644 --- a/ks_attribute.c +++ b/ks_attribute.c @@ -89,7 +89,7 @@ hal_error_t hal_ks_attribute_scan(const uint8_t * const bytes, const size_t byte const uint8_t *b = bytes; const uint8_t * const end = bytes + bytes_len; - for (int i = 0; i < attributes_len; i++) { + for (unsigned i = 0; i < attributes_len; i++) { uint32_t type; size_t length; hal_error_t err = read_header(b, end - b, &type, &length); @@ -125,7 +125,7 @@ hal_error_t hal_ks_attribute_delete(uint8_t *bytes, const size_t bytes_len, * attribute of any given type. */ - int i = 0; + unsigned i = 0; while (i < *attributes_len && attributes[i].type != type) i++; -- cgit v1.2.3