Fixed compiler warning about Lemon allocator function signature.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 26 Aug 2009 00:17:25 -0400
changeset 794 55bd6ae8be53
parent 793 616980fb00bb
child 795 5a6c79a74662
Fixed compiler warning about Lemon allocator function signature. ...probably fixed 64-bit builds, too...
misc/lempar.c
--- a/misc/lempar.c	Wed Aug 26 00:11:57 2009 -0400
+++ b/misc/lempar.c	Wed Aug 26 00:17:25 2009 -0400
@@ -273,9 +273,9 @@
 ** 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;