pass: parser: Change num_of_cpus and first_cpu into signed type 68/281568/1 accepted/tizen/unified/20220922.114008
authorDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 20 Sep 2022 03:22:01 +0000 (12:22 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Tue, 20 Sep 2022 03:22:01 +0000 (12:22 +0900)
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>
src/pass/pass.h

index 7167688..009eed4 100644 (file)
@@ -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