]> git.sur5r.net Git - cc65/blobdiff - src/cc65/datatype.c
Fixed several type conversion issues
[cc65] / src / cc65 / datatype.c
index 781470b651de5c71e9a20721730004b52714602f..282385ed7e211c34173ff7dae4609f006ea80aa3 100644 (file)
@@ -755,3 +755,12 @@ long GetElementCount (const type* T)
 
 
 
+type* GetElementType (type* T)
+/* Return the element type of the given array type. */
+{
+    CHECK (IsTypeArray (T));
+    return T + DECODE_SIZE + 1;
+}
+
+
+