ruby-changes:49854
From: shyouhei <ko1@a...>
Date: Sat, 20 Jan 2018 13:18:15 +0900 (JST)
Subject: [ruby-changes:49854] shyouhei:r61972 (trunk): [ci skip] tabify
shyouhei 2018-01-20 13:18:09 +0900 (Sat, 20 Jan 2018) New Revision: 61972 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61972 Log: [ci skip] tabify Modified files: trunk/missing/nan.c Index: missing/nan.c =================================================================== --- missing/nan.c (revision 61971) +++ missing/nan.c (revision 61972) @@ -11,18 +11,18 @@ nan(const char *spec) https://github.com/ruby/ruby/blob/trunk/missing/nan.c#L11 * necessary. Please write a proper implementation that * covers this branch. */ if (spec && spec[0]) { - double generated_nan; + double generated_nan; int len = snprintf(NULL, 0, "NAN(%s)", spec); char *buf = malloc(len + 1); /* +1 for NUL */ sprintf(buf, "NAN(%s)", spec); generated_nan = strtod(buf, NULL); free(buf); - return generated_nan; + return generated_nan; } else #endif { - assert(!spec || !spec[0]); - return (double)NAN; + assert(!spec || !spec[0]); + return (double)NAN; } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/