Skip to content

Commit

Permalink
Fixed compiler warning about Lemon allocator function signature.
Browse files Browse the repository at this point in the history
...probably fixed 64-bit builds, too...
  • Loading branch information
icculus committed Aug 26, 2009
1 parent 5cfb616 commit 3b3c994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions misc/lempar.c
Expand Up @@ -273,9 +273,9 @@ static void yyGrowStack(yyParser *p){
** to Parse and ParseFree.
*/
#if __MOJOSHADER__
static void *ParseAlloc(void *(*mallocProc)(size_t,void *), void *malloc_data){
static void *ParseAlloc(void *(*mallocProc)(int,void *), void *malloc_data){
yyParser *pParser;
pParser = (yyParser*)(*mallocProc)( (size_t)sizeof(yyParser), malloc_data );
pParser = (yyParser*)(*mallocProc)( (int)sizeof(yyParser), malloc_data );
#else
void *ParseAlloc(void *(*mallocProc)(size_t)){
yyParser *pParser;
Expand Down

0 comments on commit 3b3c994

Please sign in to comment.