Skip to content

Commit

Permalink
fix Series.toString for empty case
Browse files Browse the repository at this point in the history
  • Loading branch information
9il committed Jun 19, 2018
1 parent d208cef commit 4ecb546
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/mir/series.d
Original file line number Diff line number Diff line change
Expand Up @@ -997,11 +997,9 @@ struct Series(IndexIterator, SliceKind kind, size_t[] packs, Iterator)
enum defSpec = "%s" ~ f.keySeparator ~ "%s" ~ f.seqSeparator;
auto fmtSpec = f.spec == '(' ? f.nested : defSpec;

size_t i = 0;

if (f.spec == 's')
put(w, f.seqBefore);
for (;;)
if (length) for (size_t i = 0;;)
{
auto fmt = Spec(fmtSpec);
fmt.writeUpToNextSpec(w);
Expand Down

0 comments on commit 4ecb546

Please sign in to comment.