gallium: Fix MSVC warnings.
authorJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 28 Feb 2008 12:25:54 +0000 (21:25 +0900)
committerJosé Fonseca <jrfonseca@tungstengraphics.com>
Thu, 28 Feb 2008 12:25:54 +0000 (21:25 +0900)
src/gallium/auxiliary/tgsi/util/tgsi_scan.c

index cf6de1e82f30ce177796820777e89f415614a956..ea4a72967d6182b9c7f3213169a9017b8040e73a 100644 (file)
@@ -104,17 +104,17 @@ tgsi_scan_shader(const struct tgsi_token *tokens,
 
                if (file == TGSI_FILE_INPUT) {
                   info->input_semantic_name[info->num_inputs]
-                     = fulldecl->Semantic.SemanticName;
+                     = (ubyte)fulldecl->Semantic.SemanticName;
                   info->input_semantic_index[info->num_inputs]
-                     = fulldecl->Semantic.SemanticIndex;
+                     = (ubyte)fulldecl->Semantic.SemanticIndex;
                   info->num_inputs++;
                }
 
                if (file == TGSI_FILE_OUTPUT) {
                   info->output_semantic_name[info->num_outputs]
-                     = fulldecl->Semantic.SemanticName;
+                     = (ubyte)fulldecl->Semantic.SemanticName;
                   info->output_semantic_index[info->num_outputs]
-                     = fulldecl->Semantic.SemanticIndex;
+                     = (ubyte)fulldecl->Semantic.SemanticIndex;
                   info->num_outputs++;
                }