aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-07-21 22:15:54 +0300
committermax99x <max99x@gmail.com>2011-07-22 00:36:42 +0300
commit12cc157d6e84c74b2291496b3dd0ed1c1f1d24a4 (patch)
treef1035bb04ff6dc8f51400a1854179d2f65444f55 /src/runtime.js
parent50face8e644709e140ffa4dcba2be6d42e088c64 (diff)
Refactored the new struct layouter to work with QUANTUM_SIZE != 4.
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js1
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 {