fixed bug

This commit is contained in:
Zengtudor 2024-09-18 21:58:32 +08:00
parent e0183a393d
commit eb041b209e
1 changed files with 2 additions and 1 deletions

View File

@ -83,7 +83,8 @@ int main()
if(const auto new_buf_pos = input_file_stream.tellg(); new_buf_pos!=-1)[[likely]]{
const auto old_buf_pos = now_buf_pos;
now_buf_pos = new_buf_pos;
return (unsigned long long)(old_buf_pos-new_buf_pos);
// auto ret = new_buf_pos - old_buf_pos;
return (unsigned long long)(new_buf_pos - old_buf_pos);
}else{
return strlen(buf.data());
}