Skip to content

Commit

Permalink
Prevent a compiler warning: ‘zi’ may be used uninitialized
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Nov 22, 2023
1 parent 8e80cad commit 31517c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ complex_pow_for_special_angle(VALUE self, VALUE other)
};
int z_dir = FIX2INT(rb_int_modulo(rb_int_mul(INT2FIX(dir), other), INT2FIX(8)));

VALUE zr, zi;
VALUE zr = Qfalse, zi = Qfalse;
switch (dirs[z_dir][0]) {
case 0: zr = zero_for(zx); break;
case 1: zr = zx; break;
Expand Down

0 comments on commit 31517c8

Please sign in to comment.