@@ -756,7 +756,7 @@ TEST_CASE( "data" ) {
756
756
}
757
757
}
758
758
std::vector<sys_string::storage_type> buf (str.storage_size () + 5 );
759
- auto res = str.copy_data (0 , buf.data (), buf.size ());
759
+ auto res = str.copy_data (0 , buf.data (), sys_string::size_type ( buf.size () ));
760
760
REQUIRE (res == str.storage_size ());
761
761
762
762
if constexpr (std::is_same_v<sys_string::storage_type, char >)
@@ -766,7 +766,7 @@ TEST_CASE( "data" ) {
766
766
else
767
767
CHECK (memcmp (buf.data (), U" a🧡bc" , str.storage_size () * sizeof (sys_string::storage_type)) == 0 );
768
768
769
- res = str.copy_data (1 , buf.data (), buf.size ());
769
+ res = str.copy_data (1 , buf.data (), sys_string::size_type ( buf.size () ));
770
770
REQUIRE (res == str.storage_size () - 1 );
771
771
772
772
if constexpr (std::is_same_v<sys_string::storage_type, char >)
@@ -776,7 +776,7 @@ TEST_CASE( "data" ) {
776
776
else
777
777
CHECK (memcmp (buf.data (), (U" a🧡bc" ) + 1 , (str.storage_size () - 1 ) * sizeof (sys_string::storage_type)) == 0 );
778
778
779
- res = sys_string ().copy_data (0 , buf.data (), buf.size ());
779
+ res = sys_string ().copy_data (0 , buf.data (), sys_string::size_type ( buf.size () ));
780
780
REQUIRE (res == 0 );
781
781
}
782
782
0 commit comments