Commit 47f5d84 1 parent aff0232 commit 47f5d84 Copy full SHA for 47f5d84
File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ int main() {
34
34
// const auto a_1000 = std::string(1000, 'a');
35
35
// info("This is a info message with a 1000 char string: {}", a_1000);
36
36
// info("Does it support Korean? {}", "한글도 되나요?");
37
- info (" This is a info message with a empty string: {}" , std::string (" " ));
37
+ // info("This is a info message with a empty string: {}", std::string(""));
38
38
39
39
return 0 ;
40
40
}
Original file line number Diff line number Diff line change @@ -236,7 +236,10 @@ namespace efp {
236
236
: stl_string_head_capacity);
237
237
238
238
// Extracting the remaining parts of the string if necessary
239
- size_t remaining_length = arg.length - stl_string_head_capacity;
239
+ size_t remaining_length = arg.length > stl_string_head_capacity
240
+ ? arg.length - stl_string_head_capacity
241
+ : 0 ;
242
+
240
243
while (remaining_length > 0 ) {
241
244
_read_buffer->pop_front ().match (
242
245
[&](const StlStringData& d) {
You can’t perform that action at this time.
0 commit comments