From 4bd01d7d41153e1cfdba2a36402877c1f82d36f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B5=D0=BB=D0=B8=D0=BF=D0=B5=D0=BD=D0=BA=D0=BE=20?= =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD?= Date: Mon, 1 Aug 2016 08:58:27 +0000 Subject: [PATCH] git-svn-id: svn://db.shs.com.ru/pip@214 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5 --- src/math/pimathbase.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/math/pimathbase.h b/src/math/pimathbase.h index bc86c50c..36d5770a 100644 --- a/src/math/pimathbase.h +++ b/src/math/pimathbase.h @@ -161,11 +161,11 @@ inline PIByteArray & operator <<(PIByteArray & s, complexd v) {double t; t = v.r inline PIByteArray & operator <<(PIByteArray & s, complexld v) {ldouble t; t = v.real(); s << t; t = v.imag(); s << t; return s;} //! \relatesalso PIByteArray \brief Restore operator -inline PIByteArray & operator >>(PIByteArray & s, complexf & v) {float t; s >> t; v.real() = t; s >> t; v.imag() = t; return s;} +inline PIByteArray & operator >>(PIByteArray & s, complexf & v) {float t0, t1; s >> t0; s >> t1; v = complexf(t0, t1); return s;} //! \relatesalso PIByteArray \brief Restore operator -inline PIByteArray & operator >>(PIByteArray & s, complexd & v) {double t; s >> t; v.real() = t; s >> t; v.imag() = t; return s;} +inline PIByteArray & operator >>(PIByteArray & s, complexd & v) {double t0, t1; s >> t0; s >> t1; v = complexd(t0, t1); return s;} //! \relatesalso PIByteArray \brief Restore operator -inline PIByteArray & operator >>(PIByteArray & s, complexld & v) {ldouble t; s >> t; v.real() = t; s >> t; v.imag() = t; return s;} +inline PIByteArray & operator >>(PIByteArray & s, complexld & v) {ldouble t0, t1; s >> t0; s >> t1; v = complexld(t0, t1); return s;} void randomize();