projects
/
comedilib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e92b1
)
changed & to %, before it seemed to assume the buffer size was a power of
author
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 20 Nov 2002 00:43:19 +0000
(
00:43
+0000)
committer
Frank Mori Hess
<fmhess@speakeasy.net>
Wed, 20 Nov 2002 00:43:19 +0000
(
00:43
+0000)
2
demo/mmap.c
patch
|
blob
|
history
diff --git
a/demo/mmap.c
b/demo/mmap.c
index 2da8e40bacbcb1d102c0b40afc01e5537304029c..25b9b850083226c12cd8716e7074603a67111248 100644
(file)
--- a/
demo/mmap.c
+++ b/
demo/mmap.c
@@
-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");