]> granicus.if.org Git - flex/commitdiff
type cast to pacify c++ compilers; patch from Bruce Lilly <blilly@erols.com>
authorWill Estes <wlestes@users.sourceforge.net>
Thu, 9 Jan 2003 15:25:05 +0000 (15:25 +0000)
committerWill Estes <wlestes@users.sourceforge.net>
Thu, 9 Jan 2003 15:25:05 +0000 (15:25 +0000)
flex.skl

index 0f9c807f5dc9fc64cb05b8ad7f93e8ffefad72d1..a4157f6ffc3dd5fc4aac252d7f561ddb924f4234 100644 (file)
--- a/flex.skl
+++ b/flex.skl
@@ -909,7 +909,7 @@ YY_DECL
 
 #ifdef YY_USES_REJECT
         if ( ! YY_G(yy_state_buf) )
-            YY_G(yy_state_buf) = yyalloc(YY_BUF_SIZE + 2  YY_CALL_LAST_ARG);
+            YY_G(yy_state_buf) = (yy_state_type *)yyalloc(YY_BUF_SIZE + 2  YY_CALL_LAST_ARG);
 #endif
 
                if ( ! YY_G(yy_start) )