diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-08 18:26:14 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-08 18:26:14 +1000 |
commit | 636b1d8a5a566fac0c9c61fed44049c659435a56 (patch) | |
tree | 99ee78a56e98f09bcb7a1255b34b5638b8c776f3 /src/lvm.js | |
parent | 48d20ce3e2b38d1da536e42f225401fc06147d2a (diff) | |
download | fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.gz fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.tar.bz2 fengari-636b1d8a5a566fac0c9c61fed44049c659435a56.zip |
Introduce a TString class
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -916,11 +916,11 @@ const LTintfloat = function(l, r) { ** The code is a little tricky because it allows '\0' in the strings. */ const l_strcmp = function(ls, rs) { - let l = ls; - let ll = ls.length; + let l = ls.getstr(); + let ll = ls.tsslen(); let jl = defs.to_jsstring(l); - let r = rs; - let lr = rs.length; + let r = rs.getstr(); + let lr = rs.tsslen(); let jr = defs.to_jsstring(r); for (;;) { let temp = jl === jr; // TODO: strcoll ? |