diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-24 11:12:39 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-08-24 11:12:39 +0800 |
commit | 84d683422f497fb10c4f3c88fe788c0405c40d68 (patch) | |
tree | 555ca4f6598ba179b174b3545924587e5d479979 /tools/minicargo/toml.h | |
parent | 162651eed9b741d354ef0df44243e96e3b0c08f9 (diff) | |
download | mrust-84d683422f497fb10c4f3c88fe788c0405c40d68.tar.gz |
minicargo toml parser - Fix some edge cases exposed by rustc vendor dir
Diffstat (limited to 'tools/minicargo/toml.h')
-rw-r--r-- | tools/minicargo/toml.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/minicargo/toml.h b/tools/minicargo/toml.h index 6f145a2e..315cf62f 100644 --- a/tools/minicargo/toml.h +++ b/tools/minicargo/toml.h @@ -74,6 +74,11 @@ struct TomlValue m_str_value(::std::move(s)) { } + TomlValue(int64_t v): + m_type(Type::Integer), + m_int_value(v) + { + } TomlValue(bool v) : m_type(Type::Boolean), m_int_value(v ? 1 : 0) |