diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-23 11:36:23 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-23 11:36:23 +0800 |
commit | 28b1e61bd288a0e55cc0c6cb2d6c98be6983b0a1 (patch) | |
tree | 866702e46728eaa063dfdf20218dc6dcc5cc4e98 /src/hir/serialise.cpp | |
parent | 5bc5d0122bf5f38ef394b9f3363995193c476530 (diff) | |
download | mrust-28b1e61bd288a0e55cc0c6cb2d6c98be6983b0a1.tar.gz |
Resolve - Place struct enum variants in the type namespace, fix serialisation bug
Diffstat (limited to 'src/hir/serialise.cpp')
-rw-r--r-- | src/hir/serialise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hir/serialise.cpp b/src/hir/serialise.cpp index e7b82cae..dd68a792 100644 --- a/src/hir/serialise.cpp +++ b/src/hir/serialise.cpp @@ -623,7 +623,7 @@ namespace { m_out.write_tag(0); serialise_simplepath(e.path); m_out.write_bool(e.is_variant); - m_out.write_bool(e.idx); + m_out.write_count(e.idx); ), (Module, m_out.write_tag(1); @@ -658,7 +658,7 @@ namespace { m_out.write_tag(0); serialise_simplepath(e.path); m_out.write_bool(e.is_variant); - m_out.write_bool(e.idx); + m_out.write_count(e.idx); ), (Constant, m_out.write_tag(1); |