diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-11 15:31:09 -0500 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-02-11 15:31:09 -0500 |
| commit | 342bca7f4627454435e9f6c2d12b099f95a2fd47 (patch) | |
| tree | 01b42262415f9cc16348bfaf3741e139527be790 /src/analyze.cpp | |
| parent | d9e01be97386f008e4a4b4281658f25b50ff80f1 (diff) | |
| download | zig-342bca7f4627454435e9f6c2d12b099f95a2fd47.tar.gz zig-342bca7f4627454435e9f6c2d12b099f95a2fd47.zip | |
C pointer comparison and arithmetic
See #1059
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 691579200e..af6200cc82 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -434,7 +434,7 @@ ZigType *get_pointer_to_type_extra(CodeGen *g, ZigType *child_type, bool is_cons uint32_t bit_offset_in_host, uint32_t host_int_bytes) { assert(!type_is_invalid(child_type)); - assert(ptr_len == PtrLenSingle || child_type->id != ZigTypeIdOpaque); + assert(ptr_len != PtrLenUnknown || child_type->id != ZigTypeIdOpaque); if (byte_alignment != 0) { uint32_t abi_alignment = get_abi_alignment(g, child_type); |
