diff --git a/services/diffpatch/diff/blocks_diff.cpp b/services/diffpatch/diff/blocks_diff.cpp index 29d4fab20eb42018e07e29f4166330212d207009..b0a47a06049ea82baf5f36deec3d3a5046e0e870 100644 --- a/services/diffpatch/diff/blocks_diff.cpp +++ b/services/diffpatch/diff/blocks_diff.cpp @@ -251,7 +251,7 @@ int32_t BlocksStreamDiff::WritePatchHeader(int64_t controlSize, int64_t diffDataSize, int64_t newSize, size_t &headerLen) { PATCH_DEBUG("WritePatchHeader %zu", static_cast(stream_.tellp())); -#ifdef __aarch64__ +#if defined(__aarch64__) || defined(__loongarch_lp64) if (offset_ > static_cast(numeric_limits::max())) { PATCH_LOGE("offset_ error"); return -1;