diff --git a/src/intel/compiler/brw_asm_tool.c b/src/intel/compiler/brw_asm_tool.c index fc3d4c8a275..0950c3e60a2 100644 --- a/src/intel/compiler/brw_asm_tool.c +++ b/src/intel/compiler/brw_asm_tool.c @@ -132,7 +132,7 @@ int main(int argc, char **argv) void *mem_ctx = ralloc_context(NULL); FILE *input_file = NULL; char *output_file = NULL; - char c; + int c; FILE *output = stdout; bool help = false, compact = false; uint64_t pci_id = 0; diff --git a/src/intel/compiler/elk/elk_asm_tool.c b/src/intel/compiler/elk/elk_asm_tool.c index 9e83e92c259..d1949cfd1bd 100644 --- a/src/intel/compiler/elk/elk_asm_tool.c +++ b/src/intel/compiler/elk/elk_asm_tool.c @@ -208,7 +208,7 @@ i965_postprocess_labels() int main(int argc, char **argv) { char *output_file = NULL; - char c; + int c; FILE *output = stdout; bool help = false, compact = false; void *store;