diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-04-14 20:51:13 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-04-14 20:51:13 -0700 |
commit | 953323e80a9765fc3d7d7bfd3134d1a4a9c48580 (patch) | |
tree | b364f5f02c556dec1f05188f9d646ade9849eb13 /src/parseTools.js | |
parent | e2802c2f72bf0c3d5aada7982c393a3dad3b1031 (diff) |
fix makeSetValue on complex structural types, fixes #386
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 8ccf1f9f..92fb038a 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -986,7 +986,7 @@ function makeSetValue(ptr, pos, value, type, noNeedFirst, ignore, align, noSafe, value = range(typeData.fields.length).map(function(i) { return value + '.f' + i }); } for (var i = 0; i < typeData.fields.length; i++) { - ret.push(makeSetValue(ptr, pos + typeData.flatIndexes[i], value[i], typeData.fields[i], noNeedFirst)); + ret.push(makeSetValue(ptr, getFastValue(pos, '+', typeData.flatIndexes[i]), value[i], typeData.fields[i], noNeedFirst)); } return ret.join('; '); } |