Skip to content

Commit 7f076bc

Browse files
committed
Fix cast to size
1 parent 15f0a84 commit 7f076bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/xtd.core.unit_tests/src/xtd/threading/tests/countdown_event_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ namespace xtd::threading::tests {
132132

133133
auto test_method_(signal_with_negative_param) {
134134
auto ce = countdown_event {10};
135-
assert::throws<argument_out_of_range_exception>([&] {ce.signal(size {-1});});
135+
assert::throws<argument_out_of_range_exception>([&] {ce.signal(static_cast<size>(-1));});
136136
}
137137

138138
auto test_method_(signal_with_greater_param_than_intial_count) {

0 commit comments

Comments
 (0)