Fix old-style C-Casts

This commit is contained in:
Kai Wolf
2019-02-23 17:31:38 +01:00
parent ff22e75f95
commit b521719b6f
21 changed files with 103 additions and 105 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ bool ParsedJson::printjson(std::ostream &os) {
if (tapeidx + 1 >= howmany) {
return false;
}
os << (int64_t)tape[++tapeidx];
os << static_cast<int64_t>(tape[++tapeidx]);
break;
case 'd': // we have a double
if (tapeidx + 1 >= howmany) {
@@ -254,7 +254,7 @@ bool ParsedJson::dump_raw_tape(std::ostream &os) {
if (tapeidx + 1 >= howmany) {
return false;
}
os << "integer " << (int64_t)tape[++tapeidx] << "\n";
os << "integer " << static_cast<int64_t>(tape[++tapeidx]) << "\n";
break;
case 'd': // we have a double
os << "float ";