Commit bffc240b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Fix loop condition when printing Inf or NaN.

parent 882761f1
......@@ -594,7 +594,7 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
static const char inf_str[] = "#INF";
static const char ind_str[] = "#IND";
for(i=1; i<=sizeof(inf ? inf_str : ind_str); i++) {
for(i=1; i<(inf ? sizeof(inf_str) : sizeof(ind_str)); i++) {
if(decimal_point[i]<'0' || decimal_point[i]>'9')
break;
......
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