diff --git a/libpandafile/debug_info_extractor.cpp b/libpandafile/debug_info_extractor.cpp index 4f853e4aa226d7781b697c25546b2ae021bb42e5..105fd4bbbd318ce509b7d7b69f3b5f44d5916d7b 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()});