From 31517c862760626c228b017a4a6e7c6003abeb84 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 22 Nov 2023 13:07:44 +0900 Subject: [PATCH] =?UTF-8?q?Prevent=20a=20compiler=20warning:=20=E2=80=98zi?= =?UTF-8?q?=E2=80=99=20may=20be=20used=20uninitialized?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- complex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/complex.c b/complex.c index f518834bfc..b9d9969932 100644 --- a/complex.c +++ b/complex.c @@ -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;