comparison libinterp/parse-tree/pt-eval.cc @ 30835:2989202f92f8 stable

only allow range<FLOAT> to be instantiated * Range.h, Range.cc: Limit range<T> to floating point values. * range-fwd.h: Update forward declaration of range<T>. * ov-base.h, ov-base.cc, ov-range.h, ov-range.cc, ov.h, ov.cc, pt-eval.cc: Temporarily comment out code that uses range<INT> objects.
author John W. Eaton <jwe@octave.org>
date Thu, 17 Mar 2022 02:44:19 -0400
parents 076e19eac74a
children 97504d2edcc7
comparison
equal deleted inserted replaced
30834:f1a9e55d850c 30835:2989202f92f8
3094 { 3094 {
3095 execute_range_loop (rhs.range_value (), line, ult, loop_body); 3095 execute_range_loop (rhs.range_value (), line, ult, loop_body);
3096 return; 3096 return;
3097 } 3097 }
3098 3098
3099 // For now, disable all but range<double>.
3100
3101 #if 0
3099 if (rhs.is_int64_type ()) 3102 if (rhs.is_int64_type ())
3100 { 3103 {
3101 execute_range_loop (rhs.int64_range_value (), line, ult, loop_body); 3104 execute_range_loop (rhs.int64_range_value (), line, ult, loop_body);
3102 return; 3105 return;
3103 } 3106 }
3147 if (rhs.is_single_type ()) 3150 if (rhs.is_single_type ())
3148 { 3151 {
3149 execute_range_loop (rhs.float_range_value (), line, ult, loop_body); 3152 execute_range_loop (rhs.float_range_value (), line, ult, loop_body);
3150 return; 3153 return;
3151 } 3154 }
3155 #endif
3152 } 3156 }
3153 3157
3154 if (rhs.is_scalar_type ()) 3158 if (rhs.is_scalar_type ())
3155 { 3159 {
3156 if (m_echo_state) 3160 if (m_echo_state)