Skip to content

Commit

Permalink
apparently evaluation order is unspecified for assignment causing an …
Browse files Browse the repository at this point in the history
…off-by-one in gcc
  • Loading branch information
tfussell committed Jan 1, 2017
1 parent cdb97fd commit ab1af4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/detail/xlsx_producer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2649,7 +2649,8 @@ void xlsx_producer::write_comments(const relationship & /*rel*/, worksheet ws, c

if (authors.find(author) == authors.end())
{
authors[author] = authors.size();
auto author_index = authors.size();
authors[author] = author_index;
}
}

Expand Down

0 comments on commit ab1af4f

Please sign in to comment.