stest_common: Set 64bit value for 64bit bitmask 32/308232/2 accepted/tizen_unified accepted/tizen_unified_x tizen accepted/tizen/unified/20240321.142337 accepted/tizen/unified/20240321.155938 accepted/tizen/unified/x/20240326.073210
authorUnsung Lee <unsung.lee@samsung.com>
Wed, 20 Mar 2024 05:20:14 +0000 (14:20 +0900)
committerUnsung Lee <unsung.lee@samsung.com>
Wed, 20 Mar 2024 06:22:24 +0000 (15:22 +0900)
Set 64bit value for 64bit bitmask ((int)1 -> (unsigned long long) 1ULL).

The problem is reported by SVACE with id = 1763402.

Change-Id: I0234611ad47a8805ad9f99cdec258df3ed22d5a3
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
src/stest_common.c

index 589a441..fe9de0f 100644 (file)
@@ -46,7 +46,7 @@ void prepare_mask(int argc, char* argv[])
                for (; i < argc; i++) {
                        int val = strtol(argv[i], NULL, 10);
                        if (val >= 0 && val < 64)
-                               test_cases_mask |= (1<<val);
+                               test_cases_mask |= ((uint64_t)1<<val);
                }
        }
        return;