index
:
~sandmann/poly
master
Unnamed repository; edit this file to name it for gitweb.
sandmann
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
dda.c
3
1 files changed, 3 insertions, 0 deletions
diff --git a/dda.c b/dda.c
index 15c7b1c..6915d8b 100644
--- a/
dda.c
+++ b/
dda.c
@@ -21,7 +21,10 @@ next_sample_x (double x)
}
if (s > 1.0)
+ {
s -= 1.0;
+ i += 1;
+ }
return s + i;
}