ruby-changes:52663
From: nobu <ko1@a...>
Date: Sat, 29 Sep 2018 09:43:36 +0900 (JST)
Subject: [ruby-changes:52663] nobu:r64875 (trunk): Split assertion expressions
nobu 2018-09-29 09:43:29 +0900 (Sat, 29 Sep 2018) New Revision: 64875 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64875 Log: Split assertion expressions Modified files: trunk/rational.c Index: rational.c =================================================================== --- rational.c (revision 64874) +++ rational.c (revision 64875) @@ -445,8 +445,8 @@ nurat_int_value(VALUE num) https://github.com/ruby/ruby/blob/trunk/rational.c#L445 static void nurat_canonicalize(VALUE *num, VALUE *den) { - assert(num != NULL && RB_INTEGER_TYPE_P(*num)); - assert(den != NULL && RB_INTEGER_TYPE_P(*den)); + assert(num); assert(RB_INTEGER_TYPE_P(*num)); + assert(den); assert(RB_INTEGER_TYPE_P(*den)); if (INT_NEGATIVE_P(*den)) { *num = rb_int_uminus(*num); *den = rb_int_uminus(*den); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/