diff options
| author | Josh Wolfe <thejoshwolfe@gmail.com> | 2016-04-08 16:24:06 -0700 |
|---|---|---|
| committer | Josh Wolfe <thejoshwolfe@gmail.com> | 2016-04-08 16:24:06 -0700 |
| commit | 4ce85ea0673b36d5603e18917b288c976cd71844 (patch) | |
| tree | 83f5b13f7f0775da60da33844b13b2eaa361dcdd /src/analyze.cpp | |
| parent | 5dbc21b511790ff6bfbd8f597e2a8eb875142299 (diff) | |
| download | zig-4ce85ea0673b36d5603e18917b288c976cd71844.tar.gz zig-4ce85ea0673b36d5603e18917b288c976cd71844.zip | |
fix gcc compile error
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index fc647c82d7..cffe076c9f 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1416,7 +1416,7 @@ static void preview_error_value_decl(CodeGen *g, AstNode *node) { err->value = existing_entry->value->value; } else { int error_value_count = g->error_decls.length; - assert(error_value_count < (((uint32_t)1) << (uint32_t)g->err_tag_type->data.integral.bit_count)); + assert((uint32_t)error_value_count < (((uint32_t)1) << (uint32_t)g->err_tag_type->data.integral.bit_count)); err->value = error_value_count; g->error_decls.append(node); g->error_table.put(&err->name, err); |
