Commit 1bc6f0c8 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Reimplement floating point numbers printing.

parent ec148864
...@@ -248,8 +248,8 @@ static void test_sprintf( void ) ...@@ -248,8 +248,8 @@ static void test_sprintf( void )
{ "%lld", "-8589934591", "1", ULONGLONG_ARG, 0, ((ULONGLONG)0xffffffff)*0xffffffff }, { "%lld", "-8589934591", "1", ULONGLONG_ARG, 0, ((ULONGLONG)0xffffffff)*0xffffffff },
{ "%I32d", "1", "I32d", INT_ARG, 1 }, { "%I32d", "1", "I32d", INT_ARG, 1 },
{ "%.0f", "-2", 0, DOUBLE_ARG, 0, 0, -1.5 }, { "%.0f", "-2", 0, DOUBLE_ARG, 0, 0, -1.5 },
{ "%.0f", "-1", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, -0.5 }, { "%.0f", "-1", 0, DOUBLE_ARG, 0, 0, -0.5 },
{ "%.0f", "1", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, 0.5 }, { "%.0f", "1", 0, DOUBLE_ARG, 0, 0, 0.5 },
{ "%.0f", "2", 0, DOUBLE_ARG, 0, 0, 1.5 }, { "%.0f", "2", 0, DOUBLE_ARG, 0, 0, 1.5 },
{ "%.30f", "0.333333333333333310000000000000", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, 1.0/3.0 }, { "%.30f", "0.333333333333333310000000000000", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, 1.0/3.0 },
{ "%.30lf", "1.414213562373095100000000000000", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, sqrt(2) }, { "%.30lf", "1.414213562373095100000000000000", 0, TODO_FLAG | DOUBLE_ARG, 0, 0, sqrt(2) },
......
...@@ -4590,13 +4590,7 @@ static void test_VarBstrFromR4(void) ...@@ -4590,13 +4590,7 @@ static void test_VarBstrFromR4(void)
ok(hres == S_OK, "got hres 0x%08x\n", hres); ok(hres == S_OK, "got hres 0x%08x\n", hres);
if (bstr) if (bstr)
{ {
todo_wine {
/* MSDN states that rounding of R4/R8 is dependent on the underlying
* bit pattern of the number and so is architecture dependent. In this
* case Wine returns .2 (which is more correct) and Native returns .3
*/
ok(memcmp(bstr, szNative, sizeof(szNative)) == 0, "string different\n"); ok(memcmp(bstr, szNative, sizeof(szNative)) == 0, "string different\n");
}
SysFreeString(bstr); SysFreeString(bstr);
} }
......
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