summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-21 11:14:44 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-21 11:14:44 +0100
commit17121da9147e54ff30c95b89ebae275140a1fe77 (patch)
tree1f53aff711f739bd8404f3db9df7928115b9da63 /tests/core
parent6acc7f03edb95674cda86d0e71f5289c6881b778 (diff)
parentc551d7489c0d803c5c6d0dc6b08f3abf3a94658a (diff)
Merge pull request #73649 from aaronfranke/time-to-test-int
Explicitly cast to Variant's int type in Time tests
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/test_time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/test_time.h b/tests/core/test_time.h
index 7c8465cd12..6e31324359 100644
--- a/tests/core/test_time.h
+++ b/tests/core/test_time.h
@@ -91,7 +91,7 @@ TEST_CASE("[Time] Datetime dictionary conversion methods") {
datetime[YEAR_KEY] = 2014;
datetime[MONTH_KEY] = 2;
datetime[DAY_KEY] = 9;
- datetime[WEEKDAY_KEY] = Weekday::WEEKDAY_SUNDAY;
+ datetime[WEEKDAY_KEY] = (int64_t)Weekday::WEEKDAY_SUNDAY;
datetime[HOUR_KEY] = 22;
datetime[MINUTE_KEY] = 10;
datetime[SECOND_KEY] = 30;
@@ -100,7 +100,7 @@ TEST_CASE("[Time] Datetime dictionary conversion methods") {
date_only[YEAR_KEY] = 2014;
date_only[MONTH_KEY] = 2;
date_only[DAY_KEY] = 9;
- date_only[WEEKDAY_KEY] = Weekday::WEEKDAY_SUNDAY;
+ date_only[WEEKDAY_KEY] = (int64_t)Weekday::WEEKDAY_SUNDAY;
Dictionary time_only;
time_only[HOUR_KEY] = 22;