mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
apparently evaluation order is unspecified for assignment causing an off-by-one in gcc
This commit is contained in:
parent
cdb97fda82
commit
ab1af4f73e
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user