We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75600d0 + 352c366 commit 3072ac8Copy full SHA for 3072ac8
csv.h
@@ -465,7 +465,7 @@ namespace io{
465
}
466
467
int line_end = data_begin;
468
- while(buffer[line_end] != '\n' && line_end != data_end){
+ while(line_end != data_end && buffer[line_end] != '\n'){
469
++line_end;
470
471
@@ -476,7 +476,7 @@ namespace io{
476
throw err;
477
478
479
- if(buffer[line_end] == '\n' && line_end != data_end){
+ if(line_end != data_end && buffer[line_end] == '\n'){
480
buffer[line_end] = '\0';
481
}else{
482
// some files are missing the newline at the end of the
0 commit comments