From 532e67164fdedd8c779d21c1c6e0140b194980f9 Mon Sep 17 00:00:00 2001 From: Maxim Poliakovski Date: Tue, 4 Feb 2020 14:26:57 +0100 Subject: [PATCH] debugger: replace stol with stoul. --- debugger/debugger.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debugger/debugger.cpp b/debugger/debugger.cpp index bb05ae5..04f108a 100644 --- a/debugger/debugger.cpp +++ b/debugger/debugger.cpp @@ -89,7 +89,7 @@ void enter_debugger() reg_expr = expr_str.substr(0, expr_str.find("=")); if (reg_expr == "pc") { addr_str = expr_str.substr(expr_str.find("=") + 1); - addr = stol(addr_str, NULL, 0); + addr = stoul(addr_str, NULL, 0); ppc_state.ppc_pc = addr; } else { cout << "Unknown register " << reg_expr << endl; @@ -98,7 +98,7 @@ void enter_debugger() ppc_exec_single(); } else if (cmd == "until") { ss >> addr_str; - addr = stol(addr_str, NULL, 16); + addr = stoul(addr_str, NULL, 16); ppc_exec_until(addr); } else if (cmd == "disas") { cout << "Disassembling not implemented yet. Sorry!" << endl;