...
This commit is contained in:
parent
f9fd6ffd46
commit
a32e1aafa6
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ func read_input(input_file *os.File, input_file_name string, input_channel chan<
|
|||
if count_carriage_returns {
|
||||
process_chunk = func(chunk []byte) {
|
||||
for len(chunk) > 0 {
|
||||
idx := simdstring.UnsafeIndexByte2(chunk, '\n', '\r')
|
||||
idx := simdstring.IndexByte2(chunk, '\n', '\r')
|
||||
if idx == -1 {
|
||||
_, _ = output_buf.Write(chunk)
|
||||
chunk = nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue