[前][次][番号順一覧][スレッド一覧]

ruby-changes:61871

From: Nobuyoshi <ko1@a...>
Date: Sun, 21 Jun 2020 08:59:20 +0900 (JST)
Subject: [ruby-changes:61871] d95249ade3 (master): C-expression does not include a semicolon

https://git.ruby-lang.org/ruby.git/commit/?id=d95249ade3

From d95249ade34626dc3ae82f8bfc84e1668b1b8d01 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sun, 21 Jun 2020 08:14:49 +0900
Subject: C-expression does not include a semicolon


diff --git a/integer.rb b/integer.rb
index 2fd32ea..b1e288d 100644
--- a/integer.rb
+++ b/integer.rb
@@ -4,6 +4,6 @@ class Integer https://github.com/ruby/ruby/blob/trunk/integer.rb#L4
   #
   # Returns +true+ if +num+ has a zero value.
   def zero?
-    Primitive.cexpr! 'int_zero_p(self);'
+    Primitive.cexpr! 'int_zero_p(self)'
   end
 end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]