From acbc70f2a7f9163ed48e63e7b024e2958e2ef73b Mon Sep 17 00:00:00 2001 From: qndel Date: Wed, 18 Sep 2024 08:33:48 +0200 Subject: [PATCH] unsinged -> unsigned --- src/hidapi/windows/pp_data_dump/pp_data_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hidapi/windows/pp_data_dump/pp_data_dump.c b/src/hidapi/windows/pp_data_dump/pp_data_dump.c index d5df68b50f..9a17527263 100644 --- a/src/hidapi/windows/pp_data_dump/pp_data_dump.c +++ b/src/hidapi/windows/pp_data_dump/pp_data_dump.c @@ -85,8 +85,8 @@ void dump_hidp_link_collection_node(FILE* file, phid_pp_link_collection_node pco fprintf(file, "pp_data->LinkCollectionArray[%u]->NumberOfChildren = %hu\n", coll_idx, pcoll->NumberOfChildren); fprintf(file, "pp_data->LinkCollectionArray[%u]->NextSibling = %hu\n", coll_idx, pcoll->NextSibling); fprintf(file, "pp_data->LinkCollectionArray[%u]->FirstChild = %hu\n", coll_idx, pcoll->FirstChild); - // The compilers are not consistent on ULONG-bit-fields: They lose the unsinged or define them as int. - // Thus just always cast them to unsinged int, which should be fine, as the biggest bit-field is 28 bit + // The compilers are not consistent on ULONG-bit-fields: They lose the unsigned or define them as int. + // Thus just always cast them to unsigned int, which should be fine, as the biggest bit-field is 28 bit fprintf(file, "pp_data->LinkCollectionArray[%u]->CollectionType = %u\n", coll_idx, (unsigned int)(pcoll->CollectionType)); fprintf(file, "pp_data->LinkCollectionArray[%u]->IsAlias = %u\n", coll_idx, (unsigned int)(pcoll->IsAlias)); fprintf(file, "pp_data->LinkCollectionArray[%u]->Reserved = 0x%08X\n", coll_idx, (unsigned int)(pcoll->Reserved));