tgsi: Fix build on Win32.
authorMichal Krol <michal@tungstengraphics.com>
Fri, 2 May 2008 08:20:53 +0000 (10:20 +0200)
committerMichal Krol <michal@tungstengraphics.com>
Fri, 2 May 2008 08:20:53 +0000 (10:20 +0200)
src/gallium/auxiliary/tgsi/util/tgsi_parse.c

index c3526cb71ffe97df1475cd759fff45636447b610..5bea7738401af9ea90ad7f00e3819a0cf113dcff 100644 (file)
@@ -43,7 +43,7 @@ tgsi_full_token_free(
    union tgsi_full_token *full_token )
 {
    if( full_token->Token.Type == TGSI_TOKEN_TYPE_IMMEDIATE ) {
-      FREE( full_token->FullImmediate.u.Pointer );
+      FREE( (void *) full_token->FullImmediate.u.Pointer );
    }
 }
 
@@ -156,7 +156,7 @@ tgsi_parse_token(
          imm->u.Pointer = MALLOC(
             sizeof( struct tgsi_immediate_float32 ) * (imm->Immediate.Size - 1) );
          for( i = 0; i < imm->Immediate.Size - 1; i++ ) {
-            next_token( ctx, &imm->u.ImmediateFloat32[i] );
+            next_token( ctx, (struct tgsi_immediate_float32 *) &imm->u.ImmediateFloat32[i] );
          }
          break;