@@ -1914,7 +1914,7 @@ BYTE* PrettyPrintCABlobValue(PCCOR_SIGNATURE &typePtr,
1914
1914
for (n=0 ; n < numElements; n++)
1915
1915
{
1916
1916
if (n) appendStr (out," " );
1917
- sprintf_s (str, 64 , " %.*g " , 8 , (double )(*((float *)dataPtr)));
1917
+ sprintf_s (str, 64 , " %#.8g " , (double )(*((float *)dataPtr)));
1918
1918
float df = (float )atof (str);
1919
1919
// Must compare as underlying bytes, not floating point otherwise optimizer will
1920
1920
// try to enregister and compare 80-bit precision number with 32-bit precision number!!!!
@@ -1933,7 +1933,7 @@ BYTE* PrettyPrintCABlobValue(PCCOR_SIGNATURE &typePtr,
1933
1933
{
1934
1934
if (n) appendStr (out," " );
1935
1935
char *pch;
1936
- sprintf_s (str, 64 , " %.*g " , 17 , *((double *)dataPtr));
1936
+ sprintf_s (str, 64 , " %#.17g " , *((double *)dataPtr));
1937
1937
double df = strtod (str, &pch);
1938
1938
// Must compare as underlying bytes, not floating point otherwise optimizer will
1939
1939
// try to enregister and compare 80-bit precision number with 64-bit precision number!!!!
@@ -2605,7 +2605,7 @@ void DumpDefaultValue(mdToken tok, __inout __nullterminated char* szString, void
2605
2605
case ELEMENT_TYPE_R4:
2606
2606
{
2607
2607
char szf[32 ];
2608
- sprintf_s (szf, 32 , " %.*g " , 8 , (double )MDDV.m_fltValue );
2608
+ sprintf_s (szf, 32 , " %#.8g " , (double )MDDV.m_fltValue );
2609
2609
float df = (float )atof (szf);
2610
2610
// Must compare as underlying bytes, not floating point otherwise optimizer will
2611
2611
// try to enregister and compare 80-bit precision number with 32-bit precision number!!!!
@@ -2619,7 +2619,7 @@ void DumpDefaultValue(mdToken tok, __inout __nullterminated char* szString, void
2619
2619
case ELEMENT_TYPE_R8:
2620
2620
{
2621
2621
char szf[32 ], *pch;
2622
- sprintf_s (szf, 32 , " %.*g " , 17 , MDDV.m_dblValue );
2622
+ sprintf_s (szf, 32 , " %#.17g " , MDDV.m_dblValue );
2623
2623
double df = strtod (szf, &pch); // atof(szf);
2624
2624
szf[31 ]=0 ;
2625
2625
// Must compare as underlying bytes, not floating point otherwise optimizer will
0 commit comments