Skip to content

Commit

Permalink
replace and with &&
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemefan committed Dec 8, 2024
1 parent dab6c6e commit e133ffa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sense-voice/csrc/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ int main(int argc, char ** argv) {
n_pad = CHUNK_SIZE <= pcmf32.size() - i ? 0 : CHUNK_SIZE + i - pcmf32.size();

for (int j = i + offset; j < i + CHUNK_SIZE; j++) {
if (j > 0 and j < i + CONTEXT_SIZE - n_pad){
if (j > 0 && j < i + CONTEXT_SIZE - n_pad){
chunk[j - i - offset] = pcmf32[j] / 32768;
} else{
//pad chunk when first chunk in left or data not enough in right
Expand Down

0 comments on commit e133ffa

Please sign in to comment.