changeset 20126:d34e31b07966

Return true for is_real_scalar() for integer scalar types (bug #44917). * ov-base-int.h (octave_base_int_scalar::is_real_scalar): Overload base function in ov-base.h and return true for scalar integers.
author Rik <rik@octave.org>
date Fri, 24 Apr 2015 09:01:38 -0700
parents 274b52724931
children a42de4173533
files libinterp/octave-value/ov-base-int.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave-value/ov-base-int.h	Thu Apr 23 17:03:14 2015 -0700
+++ b/libinterp/octave-value/ov-base-int.h	Fri Apr 24 09:01:38 2015 -0700
@@ -106,6 +106,8 @@
 
   bool is_real_type (void) const { return true; }
 
+  bool is_real_scalar (void) const { return true; }
+
   //  void increment (void) { scalar += 1; }
 
   //  void decrement (void) { scalar -= 1; }