diff --git a/util/fipstools/inject_hash/macho_parser/macho_parser.c b/util/fipstools/inject_hash/macho_parser/macho_parser.c index 252f538899a..c6e0d95cc51 100644 --- a/util/fipstools/inject_hash/macho_parser/macho_parser.c +++ b/util/fipstools/inject_hash/macho_parser/macho_parser.c @@ -150,7 +150,7 @@ uint8_t* get_macho_section_data(const char *filename, machofile *macho, const ch uint32_t find_macho_symbol_index(uint8_t *symbol_table_data, size_t symbol_table_size, uint8_t *string_table_data, size_t string_table_size, const char *symbol_name, uint32_t *base) { char* string_table = NULL; - int ret = 0; + uint32_t ret = 0; if (symbol_table_data == NULL || string_table_data == NULL) { LOG_ERROR("Symbol and string table pointers cannot be null to find the symbol index");