|
@@ -77,7 +77,7 @@ namespace aFuncore {
|
|
if (tmp->next == nullptr) {
|
|
if (tmp->next == nullptr) {
|
|
do {
|
|
do {
|
|
tmp = tmp->father;
|
|
tmp = tmp->father;
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) 3));
|
|
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(3)));
|
|
} while (tmp != nullptr && tmp->next == nullptr);
|
|
} while (tmp != nullptr && tmp->next == nullptr);
|
|
if (tmp == nullptr)
|
|
if (tmp == nullptr)
|
|
break;
|
|
break;
|
|
@@ -85,7 +85,7 @@ namespace aFuncore {
|
|
} else
|
|
} else
|
|
tmp = tmp->next;
|
|
tmp = tmp->next;
|
|
}
|
|
}
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) 0));
|
|
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(0)));
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -388,24 +388,24 @@ RETURN_FALSE:
|
|
bool Code::ByteCode::write_v1(FILE *f, bool debug) const{
|
|
bool Code::ByteCode::write_v1(FILE *f, bool debug) const{
|
|
switch (type) {
|
|
switch (type) {
|
|
case code_element:
|
|
case code_element:
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) code_element));
|
|
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) prefix));
|
|
|
|
- Done(aFuntool::byteWriteStr(f, data.element));
|
|
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(code_element)));
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(prefix)));
|
|
|
|
+ Done(aFuntool::byteWriteStr(f, (data.element)));
|
|
break;
|
|
break;
|
|
case code_block:
|
|
case code_block:
|
|
if (data.son == nullptr)
|
|
if (data.son == nullptr)
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) 4)); // 空 block 标注为 4
|
|
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(4))); // 空 block 标注为 4
|
|
else
|
|
else
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) code_block));
|
|
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) prefix));
|
|
|
|
- Done(aFuntool::byteWriteInt(f, (int8_t) data.block_type));
|
|
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(code_block)));
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(prefix)));
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int8_t>(data.block_type)));
|
|
break;
|
|
break;
|
|
default:
|
|
default:
|
|
break;
|
|
break;
|
|
|
|
|
|
}
|
|
}
|
|
if (debug)
|
|
if (debug)
|
|
- Done(aFuntool::byteWriteInt(f, (int16_t) line));
|
|
|
|
|
|
+ Done(aFuntool::byteWriteInt(f, static_cast<int16_t>(line)));
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -475,7 +475,7 @@ RETURN_FALSE:
|
|
char md5_value[aFuntool::MD5_SIZE];
|
|
char md5_value[aFuntool::MD5_SIZE];
|
|
aFuntool::MD5_CTX *md5 = aFuntool::MD5Init();
|
|
aFuntool::MD5_CTX *md5 = aFuntool::MD5Init();
|
|
|
|
|
|
- char head[] = {(char) type, prefix, 'x', 'x', aFuntool::NUL};
|
|
|
|
|
|
+ char head[] = {static_cast<char>(type), prefix, 'x', 'x', aFuntool::NUL};
|
|
if (prefix == aFuntool::NUL)
|
|
if (prefix == aFuntool::NUL)
|
|
head[1] = '-';
|
|
head[1] = '-';
|
|
if (type == code_block) {
|
|
if (type == code_block) {
|