* Bug 16046 fixed [cacsd]: sysLin +/- [] yielded warnings
[scilab.git] / scilab / modules / overloading / macros / %lss_a_s.sci
index 520bdbb..236334f 100644 (file)
 // For more information, see the COPYING file which you should have received
 // along with this program.
 
-function s1=%lss_a_s(s1,d2)
+function s1 = %lss_a_s(s1,d2)
     //s=%lss_a_s(s1,d2)  iff s=s1+d2
     //!
-
-    s1(5)=s1(5)+d2
+    if d2 <> []
+        s1(5) = s1(5) + d2
+    end
 endfunction