From ca180d3f02914d282505752a1d2fe08e175f9d99 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sat, 11 Feb 2017 15:06:20 -0500 Subject: std.io.parseUnsigned buf parameter is const fixes padding in printf See #258 --- src/analyze.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/analyze.cpp') 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) { -- cgit v1.2.3