summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUnsung Lee <unsung.lee@samsung.com>2024-03-20 14:20:14 +0900
committerUnsung Lee <unsung.lee@samsung.com>2024-03-20 15:22:24 +0900
commitea70ae050ed4b5ac2c10fe6be95b199a38df2ae3 (patch)
tree22e6db0fcd644e3a107badf46ba909508125750e
parenta61773ff8132b26f5d1818262a16c43b1bbd796f (diff)
downloadlibdbuspolicy-accepted/tizen_unified.tar.gz
libdbuspolicy-accepted/tizen_unified.tar.bz2
libdbuspolicy-accepted/tizen_unified.zip
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.c2
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;