From 6d42eb3dd1e5f6e7856327fa82f9e1703641f979 Mon Sep 17 00:00:00 2001 From: Maria Grozdeva <64608453+MariaGrozdeva@users.noreply.github.com> Date: Sat, 30 Apr 2022 17:40:25 +0300 Subject: Update Complex.cpp --- Sem. 08/Complex/Complex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Sem. 08/Complex/Complex.cpp') diff --git a/Sem. 08/Complex/Complex.cpp b/Sem. 08/Complex/Complex.cpp index 9344f0a..5799619 100644 --- a/Sem. 08/Complex/Complex.cpp +++ b/Sem. 08/Complex/Complex.cpp @@ -24,7 +24,7 @@ Complex& Complex::operator-=(const Complex& other) } Complex& Complex::operator*=(const Complex& other) { - int oldReal = real; + double oldReal = real; real = real*other.real - im*other.im; im = oldReal*other.im + im * other.real; return *this; -- cgit v1.3.1-23-gd82d