mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix typos [ci skip]
This commit is contained in:
parent
d100c91445
commit
04f07713d1
7 changed files with 12 additions and 12 deletions
|
@ -1456,7 +1456,7 @@ symname_equal(VALUE sym, const char *name, size_t nlen)
|
|||
}
|
||||
|
||||
#define BUILD_ASSERT_POSITIVE(n) \
|
||||
/* make 0 negative to workaround the "zero size array" GCC extention, */ \
|
||||
/* make 0 negative to workaround the "zero size array" GCC extension, */ \
|
||||
((sizeof(char [2*(ssize_t)(n)-1])+1)/2) /* assuming no overflow */
|
||||
#define symname_equal_lit(sym, sym_name) \
|
||||
symname_equal(sym, sym_name, BUILD_ASSERT_POSITIVE(rb_strlen_lit(sym_name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue