summaryrefslogtreecommitdiff
path: root/games/kapooka/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2004-11-29 20:16:59 +0000
committerwiz <wiz@pkgsrc.org>2004-11-29 20:16:59 +0000
commit8c28ca74964d255851683ab61ee8b08bb75a1ff0 (patch)
tree7e7e934149720c75857c79017a391b51dd897e74 /games/kapooka/patches
parent7df923365c75bd00c6bc8ff3cfca3518c63482a2 (diff)
downloadpkgsrc-8c28ca74964d255851683ab61ee8b08bb75a1ff0.tar.gz
Add patch for gcc2.
Diffstat (limited to 'games/kapooka/patches')
-rw-r--r--games/kapooka/patches/patch-ab22
1 files changed, 22 insertions, 0 deletions
diff --git a/games/kapooka/patches/patch-ab b/games/kapooka/patches/patch-ab
new file mode 100644
index 00000000000..97336c7ed2c
--- /dev/null
+++ b/games/kapooka/patches/patch-ab
@@ -0,0 +1,22 @@
+$NetBSD: patch-ab,v 1.1 2004/11/29 20:16:59 wiz Exp $
+
+--- helpers.c.orig 2004-10-20 21:40:31.000000000 +0200
++++ helpers.c
+@@ -63,6 +63,8 @@ void HLP_UpdateSinWave(HLP_Wave *_wave)
+ // Returns the value wrapped inside the range [min, max] inclusive
+ int HLP_Wrap(int x, int min, int max)
+ {
++ int diff = max-min;
++
+ #ifdef DEBUG_CHECKS
+ if (min >= max)
+ {
+@@ -70,8 +72,6 @@ int HLP_Wrap(int x, int min, int max)
+ }
+ #endif
+
+- int diff = max-min;
+-
+ while (x < min)
+ {
+ x += diff;