changed & to %, before it seemed to assume the buffer size was a power of

2
This commit is contained in:
Frank Mori Hess 2002-11-20 00:43:19 +00:00
parent f0e92b1322
commit 8ab0f19e34

View file

@ -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");