summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacopo <1753245+intrip@users.noreply.github.com>2020-12-01 12:19:05 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-01 20:40:33 +0900
commit0c57438ccfe394050142171c4d5bba3ae1885534 (patch)
treea6c934a8b948ab2c2a79a1be0582413fb83c5546
parentad0c2232b1743f329b882977f068aecdbd6e0d8f (diff)
Update fixnum.h
Fix a typo: "nevative" => "negative" in `rb_fix_plus_fix`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3834
-rw-r--r--internal/fixnum.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fixnum.h b/internal/fixnum.h
index e1bde16532..7e0e4be84c 100644
--- a/internal/fixnum.h
+++ b/internal/fixnum.h
@@ -61,7 +61,7 @@ rb_fix_plus_fix(VALUE x, VALUE y)
* (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...