Compile Error SDL_mixer

Hello !

@PMandin :

With this latest Patch :

— trunk/SDL_mixer/mixer.c 2006/12/19 19:42:07 2928
+++ trunk/SDL_mixer/mixer.c 2006/12/19 19:55:28 2929
@@ -512,7 +512,7 @@
}

/* Allocate the chunk memory */
  • chunk = (Mix_Chunk *)malloc(sizeof(Mix_Chunk));
  • chunk = (Mix_Chunk *)calloc(sizeof(Mix_Chunk));
    if ( chunk == NULL ) {
    SDL_SetError(“Out of memory”);
    return(NULL);

i got a compile error, just because calloc needs two
statements. Nr of Elements and Size of one Element.

CU

Le Fri, 22 Dec 2006 20:02:19 +0100 (CET)
“Torsten Giebl” a ?crit:

@PMandin :

With this latest Patch :

— trunk/SDL_mixer/mixer.c 2006/12/19 19:42:07 2928
+++ trunk/SDL_mixer/mixer.c 2006/12/19 19:55:28 2929
@@ -512,7 +512,7 @@
}

/* Allocate the chunk memory */

  • chunk = (Mix_Chunk *)malloc(sizeof(Mix_Chunk));
  • chunk = (Mix_Chunk *)calloc(sizeof(Mix_Chunk));
    if ( chunk == NULL ) {
    SDL_SetError(“Out of memory”);
    return(NULL);

i got a compile error, just because calloc needs two
statements. Nr of Elements and Size of one Element.

Oops, I should read manpage before commiting. Fixed in svn.–
Patrice Mandin
WWW: http://pmandin.atari.org/
Programmeur Linux, Atari
Sp?cialit?: D?veloppement, jeux

Hello !

Oops, I should read manpage before commiting. Fixed in svn.

Fast reply :slight_smile:

CU