Skip to content

Commit

Permalink
Warning cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
D0ntPanic committed Jan 23, 2023
1 parent 41917bb commit fc8910d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/statusbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.
using namespace BinaryNinja;
using namespace BinaryNinjaDebuggerAPI;

constexpr size_t STATUS_STRING_MAX_LEN = 50;
constexpr int STATUS_STRING_MAX_LEN = 50;

DebuggerStatusBarWidget::DebuggerStatusBarWidget(QWidget* parent, ViewFrame* frame, BinaryViewRef data) :
QWidget(parent), m_parent(parent), m_view(frame)
Expand Down
6 changes: 3 additions & 3 deletions ui/threadframes.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ class FrameItem
FrameItem() = default;

FrameItem(const DebugThread& thread, FrameItem* parentItem = nullptr) :
m_tid(thread.m_tid), m_threadPc(thread.m_rip), m_isFrozen(thread.m_isFrozen), m_parentItem(parentItem)
m_isFrozen(thread.m_isFrozen), m_tid(thread.m_tid), m_threadPc(thread.m_rip), m_parentItem(parentItem)
{}

FrameItem(const DebugThread& thread, const DebugFrame& frame, FrameItem* parentItem = nullptr) :
m_tid(thread.m_tid), m_threadPc(thread.m_rip), m_frameIndex(frame.m_index), m_module(frame.m_module),
m_framePc(frame.m_pc), m_sp(frame.m_sp), m_fp(frame.m_fp), m_isFrame(true), m_parentItem(parentItem)
m_isFrame(true), m_tid(thread.m_tid), m_threadPc(thread.m_rip), m_frameIndex(frame.m_index),
m_module(frame.m_module), m_framePc(frame.m_pc), m_sp(frame.m_sp), m_fp(frame.m_fp), m_parentItem(parentItem)
{
uint64_t offset = frame.m_pc - frame.m_functionStart;
QString funcName = QString::asprintf("%s + 0x%" PRIx64, frame.m_functionName.c_str(), offset);
Expand Down

0 comments on commit fc8910d

Please sign in to comment.