diff --git a/src/context_tool.c b/src/context_tool.c index e75f85399b20b05250bf51c1d9393374b4c55529..bb243efca2946bd65c89b7b6fe5e70eaaf647c86 100644 --- a/src/context_tool.c +++ b/src/context_tool.c @@ -98,7 +98,7 @@ int32_t CheckFileAndGetFileContext(const char *inputFile, char **contextBufPtr, PRINT_ERR("input file is NULL.\n"); return -1; } - uint32_t ret = GetFileContext(inputFile, contextBufPtr, bufferLen); + int32_t ret = GetFileContext(inputFile, contextBufPtr, bufferLen); if (ret != 0) { PRINT_ERR("GetFileContext failed, input file : %s\n", inputFile); }