summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongwoo Lee <dwoo08.lee@samsung.com>2022-09-20 12:22:01 +0900
committerDongwoo Lee <dwoo08.lee@samsung.com>2022-09-20 12:22:01 +0900
commit3b9904360a97fb5d2adcef5b0305120858d52150 (patch)
tree54c3035979c753fb9bcd53eeb16a9667e258f202
parent588af681c5c6e7d194b3c479c8e98d2d7b1d17ea (diff)
downloadpass-3b9904360a97fb5d2adcef5b0305120858d52150.tar.gz
pass-3b9904360a97fb5d2adcef5b0305120858d52150.tar.bz2
pass-3b9904360a97fb5d2adcef5b0305120858d52150.zip
pass: parser: Change num_of_cpus and first_cpu into signed typeaccepted/tizen/unified/20220922.114008
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 <dwoo08.lee@samsung.com>
-rw-r--r--src/pass/pass.h4
1 files 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