FA模型下编译bug处理

Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
fangyunzhong
2024-03-19 21:16:56 +08:00
parent 84325bca4d
commit 2de4d51516
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const static std::string NEW_LINE_PATH = "\nat ";
const static std::string LONG_PATH_HEAD = "\\\\?\\";
const static int32_t VERSION_MAX_LEN = 128;
const static int32_t INT_TO_BYTES = sizeof(uint32_t);
static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.004" };
static const int8_t RESTOOL_VERSION[VERSION_MAX_LEN] = { "Restool 5.005" };
const static int32_t TAG_LEN = 4;
enum class KeyType {
+2 -2
View File
@@ -259,8 +259,8 @@ bool ConfigParser::ParseAbilities(const cJSON *abilities)
bool ConfigParser::ParseAbilitiy(const cJSON *ability, bool &isMainAbility)
{
if (!ability || !cJSON_IsArray(ability)) {
cerr << "Error: ability not array." << NEW_LINE_PATH << filePath_ << endl;
if (!ability || !cJSON_IsObject(ability)) {
cerr << "Error: ability not object." << NEW_LINE_PATH << filePath_ << endl;
return false;
}
if (cJSON_GetArraySize(ability) == 0) {