Skip to content

Commit

Permalink
[BUGFIX] Explicit int type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade committed Aug 24, 2024
1 parent 0c1a0fd commit 9e78e6b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions TinyTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ VOID LogInstruction(const CONTEXT* ctxt, THREADID tid, VOID *str)
if (wType == WatchedType::WATCHED_MY_MODULE) {
rva = addr_to_rva(Address); // convert to RVA
base = 0;
if (rva == m_Settings.disasmStart) {
if (rva == (ADDRINT)m_Settings.disasmStart) {
traceStarted = TRUE;
}
}
Expand All @@ -879,16 +879,16 @@ VOID LogInstruction(const CONTEXT* ctxt, THREADID tid, VOID *str)
std::stringstream ss;
ss << "[" << tid << "] ";
ss << (*strPtr);
if (!base && rva == m_Settings.disasmStart) {
if (!base && rva == (ADDRINT)m_Settings.disasmStart) {
ss << " # disasm start";
}
if (!base && rva == m_Settings.disasmStop) {
if (!base && rva == (ADDRINT)m_Settings.disasmStop) {
ss << " # disasm end";
}
traceLog.logInstruction(base, rva, ss.str());
}

if (wType == WatchedType::WATCHED_MY_MODULE && rva == m_Settings.disasmStop) {
if (wType == WatchedType::WATCHED_MY_MODULE && rva == (ADDRINT)m_Settings.disasmStop) {
traceStarted = FALSE;
}
}
Expand Down

0 comments on commit 9e78e6b

Please sign in to comment.