Commit 5aeb3217ee

Andrew Kelley <superjoe30@gmail.com>
2018-08-22 19:17:09
fixup for previous commit
1 parent 87b1040
Changed files (2)
doc/langref.html.in
@@ -3838,6 +3838,7 @@ test "float widening" {
       <p>TODO: [N]T to ?[]const T</p>
       <p>TODO: *[N]T to []T</p>
       <p>TODO: *[N]T to [*]T</p>
+      <p>TODO: *[N]T to ?[*]T</p>
       <p>TODO: *T to *[1]T</p>
       <p>TODO: [N]T to E![]const T</p>
       {#header_close#}
src/ir.cpp
@@ -10708,7 +10708,7 @@ static IrInstruction *ir_analyze_cast(IrAnalyze *ira, IrInstruction *source_inst
             actual_type->data.pointer.child_type->data.array.child_type, source_node,
             !wanted_child_type->data.pointer.is_const).id == ConstCastResultIdOk)
         {
-            IrInstruction *cast1 = ir_resolve_ptr_of_array_to_slice(ira, source_instr, value, wanted_child_type);
+            IrInstruction *cast1 = ir_resolve_ptr_of_array_to_unknown_len_ptr(ira, source_instr, value, wanted_child_type);
             return ir_analyze_maybe_wrap(ira, source_instr, cast1, wanted_type);
         }
     }