aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2018-04-27 19:23:10 +0300
committerOskari Timperi <oskari.timperi@iki.fi>2018-04-27 19:23:10 +0300
commit47eddf8d571a6cb292d945bc0a9ec8c5b67aae29 (patch)
tree2fc8bd2ccb6bf07da864cf33c5615bcff860fd94 /src
parentc68904433166a8c44ed958a53942f207afb401e5 (diff)
downloadnimpb-47eddf8d571a6cb292d945bc0a9ec8c5b67aae29.tar.gz
nimpb-47eddf8d571a6cb292d945bc0a9ec8c5b67aae29.zip
Generate object variants for oneofs
This fixes a segfault problem that I had, when running the conformance test suite. The following piece of code segfaulted on the last assignment: msg.oneofUint32 = 1 msg.oneofString = "test" If the first assignment was `0`, then there was no problem. Now we use the object variant, which gives nim runtime the ability to track what data the union holds.
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions