summaryrefslogtreecommitdiffstats
path: root/complex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-15 17:39:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-15 17:39:38 +0000
commit7bb66deb906430a016536ae304b8744ce08f1546 (patch)
treedd3991d0ed8b8d42416f67ce27083b0f01ecad59 /complex.c
parent2061745dd6ae861df0b4614a5b24aca19c7dc0d7 (diff)
downloadruby-7bb66deb906430a016536ae304b8744ce08f1546.tar.gz
ruby-7bb66deb906430a016536ae304b8744ce08f1546.tar.xz
ruby-7bb66deb906430a016536ae304b8744ce08f1546.zip
* complex.c (f_signbit): fixed indentation.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/complex.c b/complex.c
index ceb7b75f7..b32dcae1e 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);
}