From: Eric Wong Date: 2018-01-31T01:17:56+00:00 Subject: [ruby-core:85269] Re: [Ruby trunk Bug#14425] rb_funcall too strict on extra args mame@ruby-lang.org wrote: > normalperson (Eric Wong) wrote: > > Attached are over 500 gem-codesearch results of latest gems. > > nitpick: Your query includes `rb_funcall2`, `rb_funcall3`, and `rb_funcallv` which are safe to pass "`0, 0`". Oops :x Btw, I guess this is undefined behavior? In a standalone case, gcc prints "0", clang prints a randomly high number. I expected compilation to fail with both compilers. ``` /* $CC -O2 -Wextra -Wall -o divzero /path/to/this/file.c */ #include int main(void) { int a = 0; int b = 1; int c = a / (a == b); printf("%d\n", c); return 0; } ``` Unsubscribe: