mirror of
https://github.com/openharmony/developtools_global_resource_tool.git
synced 2026-07-21 06:55:24 -04:00
资源编译时id固定异常bug处理
Signed-off-by: fangyunzhong <fangyunzhong2@huawei.com>
This commit is contained in:
+2
-2
@@ -214,8 +214,8 @@ uint32_t PackageParser::AddConfig(const string& argValue)
|
||||
|
||||
uint32_t PackageParser::AddStartId(const string& argValue)
|
||||
{
|
||||
startId_ = strtol(argValue.c_str(), nullptr, 16); // 16 is hexadecimal number
|
||||
if ((startId_ >= 0x01000000 && startId_ < 0x06ffffff) || (startId_ >= 0x08000000 && startId_ < 0x41ffffff)) {
|
||||
startId_ = strtoll(argValue.c_str(), nullptr, 16); // 16 is hexadecimal number
|
||||
if ((startId_ >= 0x01000000 && startId_ < 0x06ffffff) || (startId_ >= 0x08000000 && startId_ < 0xffffffff)) {
|
||||
return RESTOOL_SUCCESS;
|
||||
}
|
||||
cerr << "Error: invalid start id " << argValue << endl;
|
||||
|
||||
Reference in New Issue
Block a user