changeset 21119:90cd0f9442d5

dasrt.cc: Replace "< 1" with "== 0" in conditional for uniformity. * dasrt.cc (dasrt_user_f): Replace "< 1" with "== 0" in conditional for uniformity with other dasXXX functions.
author Rik <rik@octave.org>
date Wed, 20 Jan 2016 16:10:23 -0800
parents 3ac9f47fb04b
children 499b851fbfae
files libinterp/corefcn/dasrt.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/dasrt.cc	Wed Jan 20 16:08:30 2016 -0800
+++ b/libinterp/corefcn/dasrt.cc	Wed Jan 20 16:10:23 2016 -0800
@@ -84,7 +84,7 @@
           err_user_supplied_eval (e, "dasrt");
         }
 
-      if (tmp.length () < 1 || ! tmp(0).is_defined ())
+      if (tmp.length () == 0 || ! tmp(0).is_defined ())
         err_user_supplied_eval ("dasrt");
 
       if (! warned_fcn_imaginary && tmp(0).is_complex_type ())