File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ pub const FieldParser = struct {
332
332
const expected_lfs = (match_crs << 1 ) | (self ._state .prev_cr >> (chunk_size - 1 ));
333
333
const masked_lfs = expected_lfs & field_lfs ;
334
334
335
- if (@popCount ( expected_lfs ) != @popCount ( masked_lfs ) ) {
335
+ if (expected_lfs != masked_lfs ) {
336
336
self .err = CsvReadError .InvalidLineEnding ;
337
337
return null ;
338
338
}
@@ -383,12 +383,12 @@ pub const FieldParser = struct {
383
383
const masked_end_seps = self ._state .field_separators & expected_end_seps ;
384
384
const masked_sep_start = field_seps_start & expected_starts ;
385
385
386
- if (! at_end and @popCount ( expected_end_seps ) != @popCount ( masked_end_seps ) ) {
386
+ if (! at_end and expected_end_seps != masked_end_seps ) {
387
387
self .err = CsvReadError .QuotePrematurelyTerminated ;
388
388
return null ;
389
389
}
390
390
391
- if (@popCount ( masked_sep_start ) != @popCount ( expected_starts ) ) {
391
+ if (masked_sep_start != expected_starts ) {
392
392
self .err = CsvReadError .UnexpectedQuote ;
393
393
return null ;
394
394
}
You can’t perform that action at this time.
0 commit comments