Bug 2345 fixed: Use of operators => and =< did not lead to an error 72/14072/2
Calixte DENIZET [Wed, 19 Mar 2014 10:23:30 +0000 (11:23 +0100)]
Change-Id: I993843f2b633c1841402d447901a225d5d32031a

scilab/CHANGES_5.5.X
scilab/modules/core/src/c/expr.c

index 912d37b..a97b1b3 100644 (file)
@@ -216,6 +216,8 @@ Scilab Bug Fixes
 
 * Bug #2067 fixed - Scilab crashed when plot was called with a large numerical value.
 
+* Bug #2345 fixed - Use of operators => and =< did not lead to an error.
+
 * Bug #2802 fixed - convstr did not convert non ascii chars.
 
 * Bug #4177 fixed - find function moved to the "elementary_functions" module.
index d21690d..a4d0905 100644 (file)
@@ -627,6 +627,11 @@ L103:
     C2F(getsym)();
     if (op == equal && C2F(com).sym != equal)
     {
+        if (C2F(com).sym == great || C2F(com).sym == less)
+        {
+            SciError(2);
+            return 0;
+        }
         int code_message = 7;
         C2F(msgs)(&code_message, &val);
     }