1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix typos [ci skip]

This commit is contained in:
Kazuhiro NISHIYAMA 2020-04-21 12:38:36 +09:00
parent b9962f0e89
commit 4b86194177
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A
3 changed files with 3 additions and 3 deletions

View file

@ -136,7 +136,7 @@ ruby3_fix2long_by_shift(VALUE x)
RUBY3_ASSERT_OR_ASSUME(RB_FIXNUM_P(x));
/* :NOTE: VALUE can be wider than long. If right shift is arithmetic, this
* is noticably faster than above. */
* is noticeably faster than above. */
const SIGNED_VALUE y = x;
const SIGNED_VALUE z = y >> 1;
const long w = RUBY3_CAST((long)z);

View file

@ -59,7 +59,7 @@
# define RUBY3_UNREACHABLE() __assume(0)
#endif
/** Wraps (or simulates) `__asume`. */
/** Wraps (or simulates) `__assume`. */
#if RUBY3_COMPILER_SINCE(Intel, 13, 0, 0)
# /* icc warnings are false positives. Ignore them. */
# /* "warning #2261: __assume expression with side effects discarded" */

View file

@ -112,7 +112,7 @@ RUBY3_SYMBOL_EXPORT_END()
# * Static assertions need such integer constant expressions as defined in
# * ISO/IEC 9899:2018 section 6.7.10 paragraph #3.
# *
# * GCC nontheless constant-folds this into no-op, though. */
# * GCC nonetheless constant-folds this into no-op, though. */
# define rb_scan_args_verify(fmt, varc) \
(sizeof(char[1-2*(rb_scan_args_count(fmt)<0)])!=1 ? \
rb_scan_args_bad_format(fmt) : \