summaryrefslogtreecommitdiff
path: root/src/hir
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2017-09-02 22:41:31 +0800
committerJohn Hodge <tpg@mutabah.net>2017-09-02 22:41:31 +0800
commit433e16af0fc89cf05e5b6f78526a20f24bcbe6d0 (patch)
tree25a742bee2897c5495b542256366dc4c5b1b1142 /src/hir
parentf2cd7ef8802da4115a39f92ee89630e5b012f754 (diff)
downloadmrust-433e16af0fc89cf05e5b6f78526a20f24bcbe6d0.tar.gz
Misc - Clean up some MSVC warnings
Diffstat (limited to 'src/hir')
-rw-r--r--src/hir/deserialise.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hir/deserialise.cpp b/src/hir/deserialise.cpp
index 0777a33b..1953828b 100644
--- a/src/hir/deserialise.cpp
+++ b/src/hir/deserialise.cpp
@@ -1064,7 +1064,7 @@ namespace {
})
_(Switch, {
deserialise_mir_lvalue(),
- deserialise_vec_c<unsigned int>([&](){ return m_in.read_count(); })
+ deserialise_vec_c<unsigned int>([&](){ return static_cast<unsigned int>(m_in.read_count()); })
})
_(Call, {
static_cast<unsigned int>(m_in.read_count()),