Make binary literals sized like other integer types

This commit is contained in:
Jason Turner
2015-10-03 16:38:41 -06:00
parent 9d18360333
commit beedf13d01
4 changed files with 55 additions and 80 deletions

View File

@@ -5,9 +5,10 @@
template<typename T>
bool test_literal(T val, const std::string &str)
{
std::cout << "Comparing : " << val;
chaiscript::ChaiScript chai;
T val2 = chai.eval<T>(str);
std::cout << "Comparing : " << val << " " << val2 << '\n';
std::cout << " " << val2 << '\n';
return val == val2;
}