diff options
author | Sunil Shetye | 2018-07-16 15:29:15 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-16 15:31:24 +0530 |
commit | 5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f (patch) | |
tree | 8b842ea29c504a11164c39221e948fdaa8fa9035 /js/Sources/RAND_m.js | |
parent | 614f18061faa4fc126f0d3577792dd9adfb3f240 (diff) | |
download | sci2js-5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f.tar.gz sci2js-5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f.tar.bz2 sci2js-5929c9088b6d5dcd23e8bbf9abdc5c9b4a49df1f.zip |
treat third argument of standard_define as model expression
Diffstat (limited to 'js/Sources/RAND_m.js')
-rw-r--r-- | js/Sources/RAND_m.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/Sources/RAND_m.js b/js/Sources/RAND_m.js index af6c26bb..f5753151 100644 --- a/js/Sources/RAND_m.js +++ b/js/Sources/RAND_m.js @@ -26,7 +26,7 @@ function RAND_m() { this.model.dep_ut = new ScilabBoolean([false,false]); this.exprs = [[sci2exp(1)],[string(this.flag)],[sci2exp([this.a])],[sci2exp([this.b])],[sci2exp([this.model.dstate[1-1],int(rand()*(10^7-1))])]]; this.gr_i = new ScilabString(["xstringb(orig(1),orig(2),\"RAND_m\",sz(1),sz(2));"]); - this.x = new standard_define(new ScilabDouble([3,2]),this.model,this.exprs,this.gr_i); + this.x = new standard_define(new ScilabDouble([3,2]),this.model,new ScilabDouble(this.exprs),this.gr_i); return new BasicBlock(this.x); } RAND_m.prototype.details = function RAND_m() { |