summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-16 22:07:05 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-17 10:13:40 +0900
commite4f891ce8d4833fea1e1f9abd69c2896d429a948 (patch)
tree81fb457e6485236fb55ab52628fdd8af9e0fcd64 /include
parent4e097226370ec93bd25823d6a0dd34963619b1b9 (diff)
Adjust styles [ci skip]
* --braces-after-func-def-line * --dont-cuddle-else * --procnames-start-lines * --space-after-for * --space-after-if * --space-after-while
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/core/rbignum.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ruby/internal/core/rbignum.h b/include/ruby/internal/core/rbignum.h
index 89db566501..3cd7d19850 100644
--- a/include/ruby/internal/core/rbignum.h
+++ b/include/ruby/internal/core/rbignum.h
@@ -37,13 +37,15 @@ int rb_big_sign(VALUE num);
RBIMPL_SYMBOL_EXPORT_END()
static inline bool
-RBIGNUM_POSITIVE_P(VALUE b) {
+RBIGNUM_POSITIVE_P(VALUE b)
+{
RBIMPL_ASSERT_TYPE(b, RUBY_T_BIGNUM);
return RBIGNUM_SIGN(b);
}
static inline bool
-RBIGNUM_NEGATIVE_P(VALUE b) {
+RBIGNUM_NEGATIVE_P(VALUE b)
+{
RBIMPL_ASSERT_TYPE(b, RUBY_T_BIGNUM);
return ! RBIGNUM_POSITIVE_P(b);
}