fix evstr for non sizeable variables ( enull, jnull, jnull, jvoid, ... ) 51/19451/2
Antoine ELIAS [Fri, 6 Oct 2017 15:54:58 +0000 (17:54 +0200)]
Change-Id: I4fbe520ed73e23a582d200482458df6f002da721

scilab/modules/string/macros/evstr.sci

index 7395445..3a74596 100644 (file)
@@ -65,7 +65,11 @@ function [%val, %ierr] = evstr(%str)
             if or(type(%val)==[11 13])
                 return
             end
-            serialized_input = size(%val,"*")>1
+            try
+                serialized_input = size(%val,"*")>1
+            catch
+                serialized_input = %f;
+            end
         end
 
         // input strings with possible "," and ";" separators