* Bug 16046 fixed [cacsd]: sysLin +/- [] yielded warnings
[scilab.git] / scilab / modules / overloading / macros / %lss_s_s.sci
index 325f0d8..1a02740 100644 (file)
@@ -10,8 +10,9 @@
 // For more information, see the COPYING file which you should have received
 // along with this program.
 
-function s1=%lss_s_s(s1,d2)
-    //s=s1-d2
-
-    s1(5)=s1(5)-d2
+function s1 = %lss_s_s(s1,d2)
+    //s = s1 - d2
+    if d2 <> []
+        s1(5) = s1(5) - d2
+    end
 endfunction