File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
hdr/sqlite_modern_cpp/utility Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ namespace sqlite {
1717 std::size_t produced_output = 0 ;
1818 while (true ) {
1919 char *used_output;
20- switch (codecvt.out (state, remaining_input, & input[ input.size ()] ,
20+ switch (codecvt.out (state, remaining_input, input. data () + input.size (),
2121 remaining_input, &result[produced_output],
2222 &result[result.size () - 1 ] + 1 , used_output)) {
2323 case std::codecvt_base::ok:
@@ -33,7 +33,7 @@ namespace sqlite {
3333 produced_output = used_output - result.data ();
3434 result.resize (
3535 result.size ()
36- + (std::max)((& input[ input.size ()] - remaining_input) * 3 / 2 ,
36+ + (std::max)((input. data () + input.size () - remaining_input) * 3 / 2 ,
3737 std::ptrdiff_t (4 )));
3838 }
3939 }
You can’t perform that action at this time.
0 commit comments