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:
parent
b9962f0e89
commit
4b86194177
3 changed files with 3 additions and 3 deletions
|
@ -136,7 +136,7 @@ ruby3_fix2long_by_shift(VALUE x)
|
||||||
RUBY3_ASSERT_OR_ASSUME(RB_FIXNUM_P(x));
|
RUBY3_ASSERT_OR_ASSUME(RB_FIXNUM_P(x));
|
||||||
|
|
||||||
/* :NOTE: VALUE can be wider than long. If right shift is arithmetic, this
|
/* :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 y = x;
|
||||||
const SIGNED_VALUE z = y >> 1;
|
const SIGNED_VALUE z = y >> 1;
|
||||||
const long w = RUBY3_CAST((long)z);
|
const long w = RUBY3_CAST((long)z);
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
# define RUBY3_UNREACHABLE() __assume(0)
|
# define RUBY3_UNREACHABLE() __assume(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** Wraps (or simulates) `__asume`. */
|
/** Wraps (or simulates) `__assume`. */
|
||||||
#if RUBY3_COMPILER_SINCE(Intel, 13, 0, 0)
|
#if RUBY3_COMPILER_SINCE(Intel, 13, 0, 0)
|
||||||
# /* icc warnings are false positives. Ignore them. */
|
# /* icc warnings are false positives. Ignore them. */
|
||||||
# /* "warning #2261: __assume expression with side effects discarded" */
|
# /* "warning #2261: __assume expression with side effects discarded" */
|
||||||
|
|
|
@ -112,7 +112,7 @@ RUBY3_SYMBOL_EXPORT_END()
|
||||||
# * Static assertions need such integer constant expressions as defined in
|
# * Static assertions need such integer constant expressions as defined in
|
||||||
# * ISO/IEC 9899:2018 section 6.7.10 paragraph #3.
|
# * 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) \
|
# define rb_scan_args_verify(fmt, varc) \
|
||||||
(sizeof(char[1-2*(rb_scan_args_count(fmt)<0)])!=1 ? \
|
(sizeof(char[1-2*(rb_scan_args_count(fmt)<0)])!=1 ? \
|
||||||
rb_scan_args_bad_format(fmt) : \
|
rb_scan_args_bad_format(fmt) : \
|
||||||
|
|
Loading…
Reference in a new issue