From 2a3d58d6924767433d296df187fc68e1d8485f0c Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 15 Feb 2009 17:39:38 +0000 Subject: * complex.c (f_signbit): fixed indentation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- complex.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'complex.c') diff --git a/complex.c b/complex.c index ceb7b75f78..b32dcae1ed 100644 --- a/complex.c +++ b/complex.c @@ -891,22 +891,19 @@ inline static VALUE f_signbit(VALUE x) { switch (TYPE(x)) { - case T_FLOAT: + case T_FLOAT: { #ifdef HAVE_SIGNBIT - { - double f = RFLOAT_VALUE(x); - return f_boolcast(!isnan(f) && signbit(f)); - } + double f = RFLOAT_VALUE(x); + return f_boolcast(!isnan(f) && signbit(f)); #else - { - char s[2]; - double f = RFLOAT_VALUE(x); + char s[2]; + double f = RFLOAT_VALUE(x); - if (isnan(f)) return Qfalse; - (void)snprintf(s, sizeof s, "%.0f", f); - return f_boolcast(s[0] == '-'); - } + if (isnan(f)) return Qfalse; + (void)snprintf(s, sizeof s, "%.0f", f); + return f_boolcast(s[0] == '-'); #endif + } } return f_negative_p(x); } -- cgit v1.2.3