From e4f891ce8d4833fea1e1f9abd69c2896d429a948 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 16 Jun 2021 22:07:05 +0900 Subject: Adjust styles [ci skip] * --braces-after-func-def-line * --dont-cuddle-else * --procnames-start-lines * --space-after-for * --space-after-if * --space-after-while --- include/ruby/internal/core/rbignum.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include/ruby/internal/core/rbignum.h') 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); } -- cgit v1.2.3