diff options
author | Tim Hughes <tim@twistedfury.com> | 2014-03-02 00:54:35 +0800 |
---|---|---|
committer | Tim Hughes <tim@twistedfury.com> | 2014-03-02 00:54:35 +0800 |
commit | 238e5c7052e83a358f0230f1b155ae123da27647 (patch) | |
tree | 922d82a9550d2b4aa4be14173b9c629459b7aeab | |
parent | a2f6a1747018942c540eaf382c87107febb006b4 (diff) | |
download | dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.tar dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.tar.gz dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.tar.bz2 dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.tar.lz dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.tar.xz dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.tar.zst dexon-solidity-238e5c7052e83a358f0230f1b155ae123da27647.zip |
Fixed implicit type conversions.
-rw-r--r-- | hexPrefix.cpp | 2 | ||||
-rw-r--r-- | 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)) { @@ -53,7 +53,7 @@ public: vector<pair<string, string>> 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; |