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

ruby-changes:63820

From: jacopo <ko1@a...>
Date: Tue, 1 Dec 2020 20:40:58 +0900 (JST)
Subject: [ruby-changes:63820] 0c57438ccf (master): Update fixnum.h

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

From 0c57438ccfe394050142171c4d5bba3ae1885534 Mon Sep 17 00:00:00 2001
From: jacopo <1753245+intrip@u...>
Date: Tue, 1 Dec 2020 12:19:05 +0100
Subject: Update fixnum.h

Fix a typo: "nevative" => "negative" in `rb_fix_plus_fix`.

diff --git a/internal/fixnum.h b/internal/fixnum.h
index e1bde16..7e0e4be 100644
--- a/internal/fixnum.h
+++ b/internal/fixnum.h
@@ -61,7 +61,7 @@ rb_fix_plus_fix(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/internal/fixnum.h#L61
      * (3) Of course `z = x + (y-1)` may overflow.
      *     At that time true value is
      *     * positive: 0b0 1xxx...1, and z = 0b1xxx...1
-     *     * nevative: 0b1 0xxx...1, and z = 0b0xxx...1
+     *     * negative: 0b1 0xxx...1, and z = 0b0xxx...1
      *     To convert this true value to long,
      *     (a) Use arithmetic shift
      *         * positive: 0b11xxx...
-- 
cgit v0.10.2


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

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