diff options
author | Unsung Lee <unsung.lee@samsung.com> | 2024-03-20 14:20:14 +0900 |
---|---|---|
committer | Unsung Lee <unsung.lee@samsung.com> | 2024-03-20 15:22:24 +0900 |
commit | ea70ae050ed4b5ac2c10fe6be95b199a38df2ae3 (patch) | |
tree | 22e6db0fcd644e3a107badf46ba909508125750e | |
parent | a61773ff8132b26f5d1818262a16c43b1bbd796f (diff) | |
download | libdbuspolicy-accepted/tizen/unified/x/20240326.073210.tar.gz libdbuspolicy-accepted/tizen/unified/x/20240326.073210.tar.bz2 libdbuspolicy-accepted/tizen/unified/x/20240326.073210.zip |
stest_common: Set 64bit value for 64bit bitmaskaccepted/tizen/unified/x/20240326.073210accepted/tizen/unified/dev/20240620.005733accepted/tizen/unified/20240321.155938accepted/tizen/unified/20240321.142337tizenaccepted/tizen_unified_xaccepted/tizen_unified_devaccepted/tizen_unified
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>
-rw-r--r-- | src/stest_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stest_common.c b/src/stest_common.c index 589a441..fe9de0f 100644 --- a/src/stest_common.c +++ b/src/stest_common.c @@ -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; |