Skip to content

Commit 5a6c159

Browse files
committed
πŸ›  MSVC narrowing warning cleanup -- unfortunately...
1 parent 88445ed commit 5a6c159

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

β€Žtests/basic/source/push_back.cppβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inline namespace ztd_static_containers_tests_basic_push_back {
2525
for (std::size_t i = 0; i < elements; ++i) {
2626
if ((i % 2) == 1) {
2727
if constexpr (std::is_arithmetic_v<T>) {
28-
c.emplace_back(i);
28+
c.emplace_back(T(i));
2929
}
3030
else {
3131
c.emplace_back();

β€Žtests/basic/source/push_front.cppβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ inline namespace ztd_static_containers_tests_basic_push_front {
2525
for (std::size_t i = 0; i < elements; ++i) {
2626
if ((i % 2) == 1) {
2727
if constexpr (std::is_arithmetic_v<T>) {
28-
c.emplace_front(i);
28+
c.emplace_front(T(i));
2929
}
3030
else {
3131
c.emplace_front();
File renamed without changes.

0 commit comments

Comments
Β (0)