mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 17:58:37 +12:00
quint64->u64
This commit is contained in:
parent
a7913ab38a
commit
ded9d73ce4
3 changed files with 3 additions and 3 deletions
|
@ -1731,7 +1731,7 @@ void debugger_frame::RegsShowMemoryViewerAction()
|
||||||
|
|
||||||
const QTextDocumentFragment frag(cursor);
|
const QTextDocumentFragment frag(cursor);
|
||||||
const QString selected = frag.toPlainText().trimmed();
|
const QString selected = frag.toPlainText().trimmed();
|
||||||
quint64 pc = 0;
|
u64 pc = 0;
|
||||||
if (!parse_hex_qstring(selected, &pc))
|
if (!parse_hex_qstring(selected, &pc))
|
||||||
{
|
{
|
||||||
QMessageBox::critical(this, tr("Invalid Hex"), tr("“%0” is not a valid 32-bit hex value.").arg(selected));
|
QMessageBox::critical(this, tr("Invalid Hex"), tr("“%0” is not a valid 32-bit hex value.").arg(selected));
|
||||||
|
|
|
@ -70,7 +70,7 @@ inline QString normalize_hex_qstring(const QString& input)
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool parse_hex_qstring(const QString& input, quint64* result, int max_bits = 32)
|
inline bool parse_hex_qstring(const QString& input, u64* result, int max_bits = 32)
|
||||||
{
|
{
|
||||||
QString s = input;
|
QString s = input;
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
|
|
|
@ -257,7 +257,7 @@ void log_frame::CreateAndConnectActions()
|
||||||
{
|
{
|
||||||
const QPlainTextEdit* pte = (m_tabWidget->currentIndex() == 1 ? m_tty : m_log);
|
const QPlainTextEdit* pte = (m_tabWidget->currentIndex() == 1 ? m_tty : m_log);
|
||||||
const QString selected = pte->textCursor().selectedText();
|
const QString selected = pte->textCursor().selectedText();
|
||||||
quint64 pc = 0;
|
u64 pc = 0;
|
||||||
if (!parse_hex_qstring(selected, &pc))
|
if (!parse_hex_qstring(selected, &pc))
|
||||||
{
|
{
|
||||||
QMessageBox::critical(this, tr("Invalid Hex"), tr("“%0” is not a valid 32-bit hex value.").arg(selected));
|
QMessageBox::critical(this, tr("Invalid Hex"), tr("“%0” is not a valid 32-bit hex value.").arg(selected));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue