diff options
author | Sunil Shetye | 2018-07-18 16:28:24 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 17:07:40 +0530 |
commit | 975ae6706b4ac868425193cf25bcbbb268051b5d (patch) | |
tree | a08dfa09d5fa0ce9892b3aba84f7420cebc4f532 /js/Sources/CONST_m.js | |
parent | 4d1e8bb193a7315a8fcfe1e09c33befdee660b7d (diff) | |
download | sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.gz sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.tar.bz2 sci2js-975ae6706b4ac868425193cf25bcbbb268051b5d.zip |
handle empty array in comparison
Diffstat (limited to 'js/Sources/CONST_m.js')
-rw-r--r-- | js/Sources/CONST_m.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Sources/CONST_m.js b/js/Sources/CONST_m.js index f0dc3885..7cc3cd7f 100644 --- a/js/Sources/CONST_m.js +++ b/js/Sources/CONST_m.js @@ -32,7 +32,7 @@ function CONST_m() { break; } var nout = size(this.C); - if (find(nout==0)!=[]) { + if (find(nout==0).length!=0) { block_parameter_error(msprintf("Wrong size for \'%s\' parameter","Constant Value"),"Constant value must have at least one element."); } else { this.model.sim = list(new ScilabString(["cstblk4_m"]), new ScilabDouble([4])); |