Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 08 / Complex / Complex.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Sem. 08/Complex/Complex.cpp2
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;