diff options
author | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
commit | 6a32252403781b303d4ebd195932ce39c5b1c08e (patch) | |
tree | cd2f8b3c4052c1b575caf33c9983ae531fad9092 /hacks/glx/glhanoi.c | |
parent | Remove android and OSX files (diff) | |
download | xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.gz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.xz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.zip |
Update to 5.43
Diffstat (limited to 'hacks/glx/glhanoi.c')
-rw-r--r-- | hacks/glx/glhanoi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hacks/glx/glhanoi.c b/hacks/glx/glhanoi.c index eaf775f..46cdc68 100644 --- a/hacks/glx/glhanoi.c +++ b/hacks/glx/glhanoi.c @@ -1296,7 +1296,7 @@ static void initData(glhcfg *glhanoi) glhanoi->pole[i].size = glhanoi->numberOfDisks; } checkAllocAndExit( - !!(glhanoi->diskPos = calloc(glhanoi->numberOfDisks, sizeof(double))), + !!(glhanoi->diskPos = calloc(glhanoi->numberOfDisks, sizeof(float))), "diskPos"); if (glhanoi->trailQSize) { @@ -1430,7 +1430,7 @@ static GLubyte *makeTexture(glhcfg *glhanoi, int x_size, int y_size, int z_size, double xi, yi, zi; if((textureData = - calloc(x_size * y_size * z_size, sizeof(GLuint))) == NULL) { + calloc(x_size * y_size * z_size, sizeof(GLubyte))) == NULL) { return NULL; } |