diff options
author | Sunil Shetye | 2018-07-09 17:07:46 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-10 11:24:53 +0530 |
commit | f19304a4fe99556c5ddc35024c818d00ffe7e23a (patch) | |
tree | f795b52492d1962f66c2f84f575ce5074b0668a8 /js/Misc/LOGICAL_OP.js | |
parent | cbc375d9bc42bc29eeb919a020dfbf15921d3cf0 (diff) | |
download | sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.tar.gz sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.tar.bz2 sci2js-f19304a4fe99556c5ddc35024c818d00ffe7e23a.zip |
handle list separately
Diffstat (limited to 'js/Misc/LOGICAL_OP.js')
-rw-r--r-- | js/Misc/LOGICAL_OP.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/js/Misc/LOGICAL_OP.js b/js/Misc/LOGICAL_OP.js index fbd68077..05bef006 100644 --- a/js/Misc/LOGICAL_OP.js +++ b/js/Misc/LOGICAL_OP.js @@ -5,7 +5,7 @@ function LOGICAL_OP() { ipar = [0]; this.nin = 2; this.model = scicos_model(); - this.model.sim = list("logicalop",4); + this.model.sim = list(new ScilabString("logicalop"),new ScilabDouble(4)); this.model.in1 = in1; this.model.out = new ScilabDouble(-1); this.model.ipar = ipar; @@ -66,21 +66,21 @@ function LOGICAL_OP() { this.tp = 1; } if (this.Datatype==1) { - this.model.sim = list("logicalop",4); + this.model.sim = list(new ScilabString("logicalop"),new ScilabDouble(4)); this.model.ipar = [this.rule]; } else { if (this.Datatype==3) { - this.model.sim = list("logicalop_i32",4); + this.model.sim = list(new ScilabString("logicalop_i32"),new ScilabDouble(4)); } else if (this.Datatype==4) { - this.model.sim = list("logicalop_i16",4); + this.model.sim = list(new ScilabString("logicalop_i16"),new ScilabDouble(4)); } else if (this.Datatype==5) { - this.model.sim = list("logicalop_i8",4); + this.model.sim = list(new ScilabString("logicalop_i8"),new ScilabDouble(4)); } else if (this.Datatype==6) { - this.model.sim = list("logicalop_ui32",4); + this.model.sim = list(new ScilabString("logicalop_ui32"),new ScilabDouble(4)); } else if (this.Datatype==7) { - this.model.sim = list("logicalop_ui16",4); + this.model.sim = list(new ScilabString("logicalop_ui16"),new ScilabDouble(4)); } else if (this.Datatype==8) { - this.model.sim = list("logicalop_ui8",4); + this.model.sim = list(new ScilabString("logicalop_ui8"),new ScilabDouble(4)); } else { message("Datatype is not supported"); ok = false; |