From 01a25f026deee7e8f70cb1f77f12876f83f09b0b Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 4 Jun 2013 14:47:42 +0000 Subject: [PATCH] Task #514: Fixed << routines for i8complex (print integers, not characters) --- LCS/Common/include/Common/ComplexBuiltinInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LCS/Common/include/Common/ComplexBuiltinInt.h b/LCS/Common/include/Common/ComplexBuiltinInt.h index 02290ca01d2..3a944f9da77 100644 --- a/LCS/Common/include/Common/ComplexBuiltinInt.h +++ b/LCS/Common/include/Common/ComplexBuiltinInt.h @@ -83,7 +83,7 @@ namespace LOFAR { // Show the complex numbers. // <group> inline std::ostream& operator<< (std::ostream& os, TYPES::i8complex x) - { os << '(' << real(x) << ',' << imag(x) << ')'; return os; } + { os << '(' << (int)real(x) << ',' << (int)imag(x) << ')'; return os; } inline std::ostream& operator<< (std::ostream& os, TYPES::i16complex x) { os << '(' << real(x) << ',' << imag(x) << ')'; return os; } inline std::ostream& operator<< (std::ostream& os, TYPES::u16complex x) -- GitLab