From 3b9904360a97fb5d2adcef5b0305120858d52150 Mon Sep 17 00:00:00 2001 From: Dongwoo Lee Date: Tue, 20 Sep 2022 12:22:01 +0900 Subject: pass: parser: Change num_of_cpus and first_cpu into signed type Since two variable is unsigned so it can be never be less than zero, but in order to check error case they are needed to be negative. Change-Id: Ib60fafeee7c1352d6cf3d63e8e4f9c6e6e7f68ce Signed-off-by: Dongwoo Lee --- src/pass/pass.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pass/pass.h b/src/pass/pass.h index 7167688..009eed4 100644 --- a/src/pass/pass.h +++ b/src/pass/pass.h @@ -501,12 +501,12 @@ struct pass_resource_config_data { * The number of supported CPU in the same cluster. * If res_type is PASS_RESOURCE_CPU_ID, it is mandatory. */ - unsigned int num_cpus; + int num_cpus; /** * [optional] Index of first cpu in the same cluster. * If res_type is PASS_RESOURCE_CPU_ID, it is mandatory. */ - unsigned int cpu; + int cpu; /* * Parsed data from each resource info configuration -- cgit v1.2.3