changed & to %, before it seemed to assume the buffer size was a power of
2
This commit is contained in:
parent
f0e92b1322
commit
8ab0f19e34
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
for(i=back;i<front;i+=sizeof(sampl_t)){
|
||||
static int col = 0;
|
||||
printf("%d ",*(sampl_t *)(map+(i&(size-1))));
|
||||
printf("%d ",*(sampl_t *)(map+(i%size)));
|
||||
col++;
|
||||
if(col==n_chan){
|
||||
printf("\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue