summaryrefslogtreecommitdiffstats
path: root/hacks/kumppa.c
diff options
context:
space:
mode:
authorSimon Rettberg2019-07-30 16:03:58 +0200
committerSimon Rettberg2019-07-30 16:03:58 +0200
commit6a32252403781b303d4ebd195932ce39c5b1c08e (patch)
treecd2f8b3c4052c1b575caf33c9983ae531fad9092 /hacks/kumppa.c
parentRemove android and OSX files (diff)
downloadxscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.gz
xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.xz
xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.zip
Update to 5.43
Diffstat (limited to 'hacks/kumppa.c')
-rw-r--r--hacks/kumppa.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/hacks/kumppa.c b/hacks/kumppa.c
index fc5167d..f4cc5bb 100644
--- a/hacks/kumppa.c
+++ b/hacks/kumppa.c
@@ -215,10 +215,10 @@ static Bool make_rots(struct state *st, double xspeed,double yspeed)
st->rotsizeY=(int)(2/yspeed+1);
iy=(double)(st->midy+1)/(double)(st->rotsizeY);
- st->Xrotations=malloc((st->midx+2)*sizeof(unsigned int));
- st->Xrottable=malloc((st->rotsizeX+1)*sizeof(unsigned int));
- st->Yrotations=malloc((st->midy+2)*sizeof(unsigned int));
- st->Yrottable=malloc((st->rotsizeY+1)*sizeof(unsigned int));
+ st->Xrotations=malloc((st->midx+2)*sizeof(int));
+ st->Xrottable=malloc((st->rotsizeX+1)*sizeof(int));
+ st->Yrotations=malloc((st->midy+2)*sizeof(int));
+ st->Yrottable=malloc((st->rotsizeY+1)*sizeof(int));
chks=malloc(((st->midx>st->midy)?st->midx:st->midy)*sizeof(Bool));
if (!st->Xrottable || !st->Yrottable || !st->Xrotations || !st->Yrotations || !chks) return False;