changeset 10482:2645a6b1027b

fix typo in last patch
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 01 Apr 2010 08:35:50 +0200
parents e8811e5dd699
children 7b5f706f3a83
files liboctave/mx-inlines.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/mx-inlines.cc	Thu Apr 01 08:27:23 2010 +0200
+++ b/liboctave/mx-inlines.cc	Thu Apr 01 08:35:50 2010 +0200
@@ -116,7 +116,7 @@
 // Convert to logical value, for logical op purposes.
 template <class T> inline bool logical_value (T x) { return x; }
 template <class T> inline bool logical_value (const std::complex<T>& x) 
-{ return x.real () != 0 && x.imag () != 0; }
+{ return x.real () != 0 || x.imag () != 0; }
 template <class T> inline bool logical_value (const octave_int<T>& x) 
 { return x.value (); }