Commit 6283c1a4 authored by hjk's avatar hjk
Browse files

debugger: make clang happy

parent d069713a
...@@ -962,10 +962,10 @@ void qDumpInnerValueHelper(QDumper &d, const char *type, const void *addr, ...@@ -962,10 +962,10 @@ void qDumpInnerValueHelper(QDumper &d, const char *type, const void *addr,
break; break;
case 'o': case 'o':
if (isEqual(type, "bool")) { if (isEqual(type, "bool")) {
switch (*(bool*)addr) { switch (*(unsigned char*)addr) {
case 0: d.putItem(field, "false"); break; case 0: d.putItem(field, "false"); break;
case 1: d.putItem(field, "true"); break; case 1: d.putItem(field, "true"); break;
default: d.putItem(field, *(bool*)addr); break; default: d.putItem(field, *(unsigned char*)addr); break;
} }
} else if (isEqual(type, "double")) } else if (isEqual(type, "double"))
d.putItem(field, *(double*)addr); d.putItem(field, *(double*)addr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment