From 238e5c7052e83a358f0230f1b155ae123da27647 Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Sat, 1 Mar 2014 16:54:35 +0000 Subject: Fixed implicit type conversions. --- hexPrefix.cpp | 2 +- trie.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hexPrefix.cpp b/hexPrefix.cpp index 10b839a7..b8bc1f48 100644 --- a/hexPrefix.cpp +++ b/hexPrefix.cpp @@ -46,7 +46,7 @@ public: cnote << i.first; bytes v; for (auto& i: o["seq"].get_array()) - v.push_back(i.get_int()); + v.push_back((byte)i.get_int()); auto e = hexPrefixEncode(v, o["term"].get_bool()); if (!o["out"].is_null() && o["out"].get_str() != asHex(e)) { diff --git a/trie.cpp b/trie.cpp index 26a07260..3092238c 100644 --- a/trie.cpp +++ b/trie.cpp @@ -53,7 +53,7 @@ public: vector> ss; for (auto& i: o["in"].get_obj()) ss.push_back(make_pair(i.first, i.second.get_str())); - for (unsigned j = 0; j < fac(ss.size()); ++j) + for (unsigned j = 0; j < fac((unsigned)ss.size()); ++j) { next_permutation(ss.begin(), ss.end()); BasicMap m; -- cgit v1.2.3