From 626832f1b729fba4827369434cec3489884e1481 Mon Sep 17 00:00:00 2001 From: wangyantian Date: Fri, 18 Mar 2022 13:40:17 +0800 Subject: [PATCH] fixed b7ae2c3 from https://gitee.com/wangyantian/ark_runtime_core/pulls/107 Fix codex warnings Signed-off-by: wangyantian --- libpandafile/debug_info_extractor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libpandafile/debug_info_extractor.cpp b/libpandafile/debug_info_extractor.cpp index 4f853e4..105fd4b 100644 --- a/libpandafile/debug_info_extractor.cpp +++ b/libpandafile/debug_info_extractor.cpp @@ -224,7 +224,8 @@ private: auto adjust_opcode = static_cast(static_cast(opcode) - LineNumberProgramItem::OPCODE_BASE); auto pc_offset = static_cast(adjust_opcode / LineNumberProgramItem::LINE_RANGE); - int32_t line_offset = adjust_opcode % LineNumberProgramItem::LINE_RANGE + LineNumberProgramItem::LINE_BASE; + int32_t line_offset = + static_cast(adjust_opcode) % LineNumberProgramItem::LINE_RANGE + LineNumberProgramItem::LINE_BASE; state_.AdvancePc(pc_offset); state_.AdvanceLine(line_offset); lnt_.push_back({state_.GetAddress(), state_.GetLine()});