pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/kapooka Add patch for gcc2.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3f22ae741bb
branches:  trunk
changeset: 484779:d3f22ae741bb
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Nov 29 20:16:59 2004 +0000

description:
Add patch for gcc2.

diffstat:

 games/kapooka/distinfo         |   3 ++-
 games/kapooka/patches/patch-ab |  22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+), 1 deletions(-)

diffs (37 lines):

diff -r 2e5d62e53034 -r d3f22ae741bb games/kapooka/distinfo
--- a/games/kapooka/distinfo    Mon Nov 29 19:56:16 2004 +0000
+++ b/games/kapooka/distinfo    Mon Nov 29 20:16:59 2004 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2004/11/24 17:05:04 wiz Exp $
+$NetBSD: distinfo,v 1.2 2004/11/29 20:16:59 wiz Exp $
 
 SHA1 (kapooka_0.2.tar.bz2) = b61080370ccb47ca7320e812fdcdea39a1589aca
 Size (kapooka_0.2.tar.bz2) = 322009 bytes
 SHA1 (patch-aa) = 429e7ae7e70854bef13a860db8699376b203c158
+SHA1 (patch-ab) = 71fdeda51180b5bcf6c372c5c62bd50da73de825
diff -r 2e5d62e53034 -r d3f22ae741bb games/kapooka/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/kapooka/patches/patch-ab    Mon Nov 29 20:16:59 2004 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index