Compare commits

..

No commits in common. "800560693b0f03b476b8e3e611522e0e2fd27161" and "e0183a393d2ff7857331e9d4a2d2f65e25b9c25b" have entirely different histories.

View File

@ -79,12 +79,11 @@ int main()
// string l = ""; // string l = "";
auto now_buf_pos = input_file_stream.tellg(); auto now_buf_pos = input_file_stream.tellg();
const auto get_buf_len = [&now_buf_pos,&input_file_stream,&buf](){ const auto get_buf_len = [&](){
if(const auto new_buf_pos = input_file_stream.tellg(); new_buf_pos!=-1)[[likely]]{ if(const auto new_buf_pos = input_file_stream.tellg(); new_buf_pos!=-1)[[likely]]{
const auto old_buf_pos = now_buf_pos; const auto old_buf_pos = now_buf_pos;
now_buf_pos = new_buf_pos; now_buf_pos = new_buf_pos;
// auto ret = new_buf_pos - old_buf_pos; return (unsigned long long)(old_buf_pos-new_buf_pos);
return (unsigned long long)(new_buf_pos - old_buf_pos);
}else{ }else{
return strlen(buf.data()); return strlen(buf.data());
} }