diff options
author | max99x <max99x@gmail.com> | 2011-07-21 22:15:54 +0300 |
---|---|---|
committer | max99x <max99x@gmail.com> | 2011-07-22 00:36:42 +0300 |
commit | 12cc157d6e84c74b2291496b3dd0ed1c1f1d24a4 (patch) | |
tree | f1035bb04ff6dc8f51400a1854179d2f65444f55 /src/runtime.js | |
parent | 50face8e644709e140ffa4dcba2be6d42e088c64 (diff) |
Refactored the new struct layouter to work with QUANTUM_SIZE != 4.
Diffstat (limited to 'src/runtime.js')
-rw-r--r-- | src/runtime.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime.js b/src/runtime.js index 06638fa3..5b09a16b 100644 --- a/src/runtime.js +++ b/src/runtime.js @@ -179,6 +179,7 @@ Runtime = { offset = offset || 0; type = typeof Types === 'undefined' ? Runtime.typeInfo[typeName] : Types.types[typeName]; if (!type) return null; + if (!struct) struct = Types.structMetadata[typeName.replace(/.*\./, '')]; assert(type.fields.length === struct.length, 'Number of named fields must match the type for ' + typeName); alignment = type.flatIndexes; } else { |