changeset 9149:7120fbbecf97

ov-base-int.cc: correct result for template specialization
author John W. Eaton <jwe@octave.org>
date Wed, 22 Apr 2009 17:26:31 -0400
parents 69e6bbfef8c2
children e716cafee800
files src/ChangeLog src/ov-base-int.cc
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Wed Apr 22 14:41:27 2009 -0400
+++ b/src/ChangeLog	Wed Apr 22 17:26:31 2009 -0400
@@ -1,5 +1,8 @@
 2009-04-22  John W. Eaton  <jwe@octave.org>
 
+	* ov-base-int.cc (octave_base_int_helper<T, false,
+	false>::char_value_out_of_range): Correct result for specialization.
+
 	* ov-class.cc (octave_class::dotref, octave_class::subsasgn):
 	Protect against possibly invalid octave_value -> string conversions.
 
--- a/src/ov-base-int.cc	Wed Apr 22 14:41:27 2009 -0400
+++ b/src/ov-base-int.cc	Wed Apr 22 17:26:31 2009 -0400
@@ -71,7 +71,7 @@
 template <class T>
 struct octave_base_int_helper<T, false, false>
 {
-  static bool char_value_out_of_range (T) { return true; }
+  static bool char_value_out_of_range (T) { return false; }
 };
 
 template <class T>