diff options
author | max99x <max99x@gmail.com> | 2011-07-31 09:01:56 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-31 09:01:56 +0300 |
commit | 17c60015790e099393e650a60c0a225db1de0030 (patch) | |
tree | 46f1841d66021a1281b1ae4878bdc9900f7457c6 /src/runtime.js | |
parent | c6a4182becf30692db96d7133aa091090b24ad38 (diff) |
Split getNativeFieldSize() into getNativeFieldSize() and getNativeTypeSize();
Updated all references to the above.
Diffstat (limited to 'src/runtime.js')
-rw-r--r-- | src/runtime.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js index 9a6cbc50..ad3c973d 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -108,6 +108,7 @@ Runtime = { }, getNativeFieldSize: getNativeFieldSize, + getNativeTypeSize: getNativeTypeSize, dedup: dedup, set: set, @@ -123,7 +124,7 @@ Runtime = { type.flatIndexes = type.fields.map(function(field) { var size, alignSize; if (Runtime.isNumberType(field) || Runtime.isPointerType(field)) { - size = Runtime.getNativeFieldSize(field, true); // pack char; char; in structs, also char[X]s. + size = Runtime.getNativeTypeSize(field); // pack char; char; in structs, also char[X]s. alignSize = size; } else if (Runtime.isStructType(field)) { size = Types.types[field].flatSize; |