commit | c321aca2b46efba6fefeafa8eea505674a4e2b20 | [log] [tgz] |
---|---|---|
author | Vadim Zeitlin <vz-swig@zeitlins.org> | Thu Jul 11 17:15:38 2019 +0200 |
committer | Vadim Zeitlin <vz-swig@zeitlins.org> | Thu Jul 11 17:15:38 2019 +0200 |
tree | 28c245157615b3215c8554660489ac7368da8d18 | |
parent | 2db6b4271538626290ccaaaa73b97ef126d37191 [diff] |
Fix missing value for first item of enums with trailing comma The value of the first item of an enum with a trailing comma after its last item was not correctly initialized to 0 any more after the changes of 74adaa5738368ce473870451422f4a7175b6a736 (see #1515) because "_last" attribute was not set correctly in this case. Do set it for the last item when it's followed by a comma too and add more unit tests checking for this. Closes #1566.