projects
/
sdk
/
tools
/
netcoredbg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d9b2f9
)
Set precision for float (9) and double (17) values display
author
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Tue, 11 Jul 2017 17:31:53 +0000
(20:31 +0300)
committer
Igor Kulaychuk
<i.kulaychuk@samsung.com>
Mon, 13 Nov 2017 19:22:40 +0000
(22:22 +0300)
src/debug/debugger/valueprint.cpp
patch
|
blob
|
history
diff --git
a/src/debug/debugger/valueprint.cpp
b/src/debug/debugger/valueprint.cpp
index
3031624
..
2f33c78
100644
(file)
--- a/
src/debug/debugger/valueprint.cpp
+++ b/
src/debug/debugger/valueprint.cpp
@@
-426,11
+426,11
@@
HRESULT PrintValue(ICorDebugValue *pInputValue, ICorDebugILFrame * pILFrame, std
break;
case ELEMENT_TYPE_R4:
- ss << *(float*) &(rgbValue[0]);
+ ss <<
std::setprecision(9) <<
*(float*) &(rgbValue[0]);
break;
case ELEMENT_TYPE_R8:
- ss << *(double*) &(rgbValue[0]);
+ ss <<
std::setprecision(17) <<
*(double*) &(rgbValue[0]);
break;
case ELEMENT_TYPE_OBJECT: