mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix -Wmaybe-uninitialized on Complex#** (#10075)
This commit is contained in:
parent
cdca94208f
commit
38bf622cdc
1 changed files with 2 additions and 0 deletions
|
@ -1065,6 +1065,8 @@ complex_pow_for_special_angle(VALUE self, VALUE other)
|
|||
else if (f_eqeq_p(dat->real, f_negate(dat->imag))) {
|
||||
x = dat->imag;
|
||||
dir = 3;
|
||||
} else {
|
||||
dir = 0;
|
||||
}
|
||||
|
||||
if (UNDEF_P(x)) return x;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue