# HG changeset patch # User Rik # Date 1429891298 25200 # Node ID d34e31b07966e20a3103f99313e4563c7036728b # Parent 274b527249310fc890e9d274077705989f2ac222 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. diff -r 274b52724931 -r d34e31b07966 libinterp/octave-value/ov-base-int.h --- 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; }