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

ruby-changes:60132

From: Nobuyoshi <ko1@a...>
Date: Thu, 20 Feb 2020 13:43:18 +0900 (JST)
Subject: [ruby-changes:60132] 56d33b3ea8 (master): Fixed missing `return`

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

From 56d33b3ea8cd2f8360ec891da10552d708522ab7 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 20 Feb 2020 13:39:27 +0900
Subject: Fixed missing `return`

Get rid of double writing.

diff --git a/compile.c b/compile.c
index 985debe..fa3505a 100644
--- a/compile.c
+++ b/compile.c
@@ -9758,6 +9758,7 @@ ibf_dump_write_small_value(struct ibf_dump *dump, VALUE x) https://github.com/ruby/ruby/blob/trunk/compile.c#L9758
 {
     if (sizeof(VALUE) > 8 || CHAR_BIT != 8) {
         ibf_dump_write(dump, &x, sizeof(VALUE));
+        return;
     }
 
     enum { max_byte_length = sizeof(VALUE) + 1 };
-- 
cgit v0.10.2


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

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