From f599365059ce6569323cf47227fb75198b79be45 Mon Sep 17 00:00:00 2001 From: 18721213663 Date: Thu, 4 May 2023 09:57:37 +0800 Subject: [PATCH] fixed 20537ac from https://gitee.com/zhuhongtao66/filemanagement_file_api/pulls/269 bugfix_readtext_offset_64 Signed-off-by: 18721213663 --- interfaces/kits/js/src/mod_fs/properties/read_text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/interfaces/kits/js/src/mod_fs/properties/read_text.cpp b/interfaces/kits/js/src/mod_fs/properties/read_text.cpp index 60b71e81e..0436ae4bd 100755 --- a/interfaces/kits/js/src/mod_fs/properties/read_text.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/read_text.cpp @@ -14,6 +14,7 @@ */ #include "read_text.h" +#include #include #include #include @@ -163,7 +164,7 @@ napi_value ReadText::Sync(napi_env env, napi_callback_info info) } if (offset > statbf.st_size) { - HILOGE("Invalid offset: %{public}lld", offset); + HILOGE("Invalid offset: %{public}" PRIu64, offset); NError(EINVAL).ThrowErr(env); return nullptr; } -- Gitee