diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-02-11 15:06:20 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-02-11 15:06:20 -0500 |
| commit | ca180d3f02914d282505752a1d2fe08e175f9d99 (patch) | |
| tree | 07205165370989989e32b2db75eb943dea24556f /src/analyze.cpp | |
| parent | f7173f4f081bdc200732cc9f7d58d3d54f9b0205 (diff) | |
| download | zig-ca180d3f02914d282505752a1d2fe08e175f9d99.tar.gz zig-ca180d3f02914d282505752a1d2fe08e175f9d99.zip | |
std.io.parseUnsigned buf parameter is const
fixes padding in printf
See #258
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 53004d402e..9a65479e49 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3302,7 +3302,7 @@ bool ir_get_var_is_comptime(VariableTableEntry *var) { } bool const_values_equal(ConstExprValue *a, ConstExprValue *b) { - assert(a->type == b->type); + assert(a->type->id == b->type->id); assert(a->special == ConstValSpecialStatic); assert(b->special == ConstValSpecialStatic); switch (a->type->id) { |
