spirv: s/uint/unsigned/ to fix MSVC build
authorBrian Paul <brianp@vmware.com>
Fri, 30 Mar 2018 17:30:05 +0000 (11:30 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Mar 2018 20:33:33 +0000 (14:33 -0600)
Reviewed-by: Neil Roberts <nroberts@igalia.com>
src/compiler/spirv/vtn_cfg.c

index 3d5de378ac9fe3f065158045943798b41976dddf..e7d2f9ea61427ab4e577406608ad61353f4819b2 100644 (file)
@@ -513,7 +513,7 @@ vtn_cfg_walk_blocks(struct vtn_builder *b, struct list_head *cf_list,
                      "Selector of OpSelect must have a type of OpTypeInt");
 
          bool is_default = true;
-         const uint bitsize = nir_alu_type_get_type_size(cond_type);
+         const unsigned bitsize = nir_alu_type_get_type_size(cond_type);
          for (const uint32_t *w = block->branch + 2; w < branch_end;) {
             uint64_t literal = 0;
             if (!is_default) {