i965/vec4/gs: Fix signed/unsigned comparison warning.
authorMatt Turner <mattst88@gmail.com>
Thu, 22 Oct 2015 19:26:27 +0000 (12:26 -0700)
committerMatt Turner <mattst88@gmail.com>
Thu, 22 Oct 2015 19:27:04 +0000 (12:27 -0700)
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp

index 9402489e628ce3ce0593726158c11871df31c755..0b1c2ecd7f05c49300054fbfefdacc7a96e3764a 100644 (file)
@@ -768,7 +768,7 @@ brw_compile_gs(const struct brw_compiler *compiler, void *log_data,
       output_size_bytes += 32;
 
    assert(output_size_bytes >= 1);
-   int max_output_size_bytes = GEN7_MAX_GS_URB_ENTRY_SIZE_BYTES;
+   unsigned max_output_size_bytes = GEN7_MAX_GS_URB_ENTRY_SIZE_BYTES;
    if (compiler->devinfo->gen == 6)
       max_output_size_bytes = GEN6_MAX_GS_URB_ENTRY_SIZE_BYTES;
    if (output_size_bytes > max_output_size_bytes)