diff --git a/share/qtcreator/gdbmacros/gdbmacros.cpp b/share/qtcreator/gdbmacros/gdbmacros.cpp index ecaee41ec3a..11f83c65c90 100644 --- a/share/qtcreator/gdbmacros/gdbmacros.cpp +++ b/share/qtcreator/gdbmacros/gdbmacros.cpp @@ -633,7 +633,7 @@ QDumper &QDumper::put(const void *p) if (p) { // Pointer is 'long long' on WIN_64, only static const char *printFormat = sizeof(quintptr) == sizeof(long) ? "0x%lx" : "0x%llx"; - pos += sprintf(outBuffer + pos, printFormat, reinterpret_cast(p)); + pos += sprintf(outBuffer + pos, printFormat, reinterpret_cast(p)); } else { pos += sprintf(outBuffer + pos, ""); } @@ -1069,7 +1069,7 @@ static void qDumpQAbstractItem(QDumper &d) static const char *printFormat = sizeof(quintptr) == sizeof(long) ? "%d,%d,0x%lx,0x%lx" : "%d,%d,0x%llx,0x%llx"; sscanf(d.templateParameters[0], printFormat, &mm->r, &mm->c, - reinterpret_cast(&mm->p), reinterpret_cast(&mm->m)); + reinterpret_cast(&mm->p), reinterpret_cast(&mm->m)); } const QAbstractItemModel *m = mi.model(); const int rowCount = m->rowCount(mi);