From 4491a5dc83742236edd733268c917b1228fca476 Mon Sep 17 00:00:00 2001 From: Lee Maguire Date: Mon, 13 Nov 2023 23:48:12 +0000 Subject: [PATCH] Fix compilation --- tests/experimental/db/query_tests.cpp | 2 +- tests/experimental/db/results_tests.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/experimental/db/query_tests.cpp b/tests/experimental/db/query_tests.cpp index b388ec56..c95f8351 100644 --- a/tests/experimental/db/query_tests.cpp +++ b/tests/experimental/db/query_tests.cpp @@ -182,7 +182,7 @@ namespace realm::experimental { return o._id == 123 && o.str_col != "John"; }); CHECK(results.size() == 0); - CHECK(query_string_results_size(AllTypesObject, "_id == $0 && str_col != $1", std::vector({(int64_t) 123, "John"})) == 0); + CHECK(query_string_results_size(AllTypesObject, "_id == $0 && str_col != $1", std::vector({(int64_t)123, "John"})) == 0); results = realm.objects().where([](auto &o) { return o._id == 123 || o.str_col != "John"; diff --git a/tests/experimental/db/results_tests.cpp b/tests/experimental/db/results_tests.cpp index 98d6e4f0..fefa21c4 100644 --- a/tests/experimental/db/results_tests.cpp +++ b/tests/experimental/db/results_tests.cpp @@ -281,11 +281,11 @@ namespace realm::experimental { CHECK(queried_results.size() == 1); CHECK(queried_results[0]._id == 1); - auto queried_results_string = results.where("_id == $0", {2}); + auto queried_results_string = results.where("_id == $0", {(int64_t)2}); CHECK(queried_results_string.size() == 1); CHECK(queried_results_string[0]._id == 2); - queried_results_string = results.where("_id == $0", {3}); + queried_results_string = results.where("_id == $0", {(int64_t)3}); CHECK(queried_results_string.size() == 0); }