From 63f636e7b775bc8d2881104248f9579a089c4240 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 6 Nov 2018 11:09:14 -0500 Subject: limit integer types to maximum bit width of 65535 closes #1541 --- src/codegen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/codegen.cpp') diff --git a/src/codegen.cpp b/src/codegen.cpp index 71de547353..a93ab0cef1 100644 --- a/src/codegen.cpp +++ b/src/codegen.cpp @@ -7326,7 +7326,7 @@ void codegen_translate_c(CodeGen *g, Buf *full_path) { import->di_file = ZigLLVMCreateFile(g->dbuilder, buf_ptr(src_basename), buf_ptr(src_dirname)); ZigList errors = {0}; - int err = parse_h_file(import, &errors, buf_ptr(full_path), g, nullptr); + Error err = parse_h_file(import, &errors, buf_ptr(full_path), g, nullptr); if (err == ErrorCCompileErrors && errors.length > 0) { for (size_t i = 0; i < errors.length; i += 1) { @@ -7446,7 +7446,7 @@ static void gen_root_source(CodeGen *g) { return; Buf *source_code = buf_alloc(); - int err; + Error err; // No need for using the caching system for this file fetch because it is handled // separately. if ((err = os_fetch_file_path(resolved_path, source_code, true))) { @@ -7514,7 +7514,7 @@ void codegen_add_assembly(CodeGen *g, Buf *path) { static void gen_global_asm(CodeGen *g) { Buf contents = BUF_INIT; - int err; + Error err; for (size_t i = 0; i < g->assembly_files.length; i += 1) { Buf *asm_file = g->assembly_files.at(i); // No need to use the caching system for these fetches because they -- cgit v1.2.3