test/testime.c
changeset 10503 6f9f7acc9d1e
parent 10416 d6e839e8b339
child 10737 3406a0f8b041
     1.1 --- a/test/testime.c	Sun Oct 09 20:31:04 2016 +0200
     1.2 +++ b/test/testime.c	Sun Oct 09 20:31:32 2016 +0200
     1.3 @@ -110,7 +110,7 @@
     1.4      const size_t unifontTextureSize = UNIFONT_NUM_TEXTURES * state->num_windows * sizeof(void *);
     1.5  
     1.6      /* Allocate memory for the glyph data so the file can be closed after initialization. */
     1.7 -    unifontGlyph = SDL_malloc(unifontGlyphSize);
     1.8 +    unifontGlyph = (struct UnifontGlyph *)SDL_malloc(unifontGlyphSize);
     1.9      if (unifontGlyph == NULL)
    1.10      {
    1.11          SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Failed to allocate %d KiB for glyph data.\n", (int)(unifontGlyphSize + 1023) / 1024);
    1.12 @@ -119,7 +119,7 @@
    1.13      SDL_memset(unifontGlyph, 0, unifontGlyphSize);
    1.14  
    1.15      /* Allocate memory for texture pointers for all renderers. */
    1.16 -    unifontTexture = SDL_malloc(unifontTextureSize);
    1.17 +    unifontTexture = (SDL_Texture **)SDL_malloc(unifontTextureSize);
    1.18      if (unifontTexture == NULL)
    1.19      {
    1.20          SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Failed to allocate %d KiB for texture pointer data.\n", (int)(unifontTextureSize + 1023) / 1024);
    1.21 @@ -270,7 +270,7 @@
    1.22          exit(-1);
    1.23      }
    1.24  
    1.25 -    textureRGBA = SDL_malloc(UNIFONT_TEXTURE_SIZE);
    1.26 +    textureRGBA = (Uint8 *)SDL_malloc(UNIFONT_TEXTURE_SIZE);
    1.27      if (textureRGBA == NULL)
    1.28      {
    1.29          SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "unifont: Failed to allocate %d MiB for a texture.\n", UNIFONT_TEXTURE_SIZE / 1024 / 1024);