aboutsummaryrefslogtreecommitdiffstats
path: root/iseq.h
diff options
context:
space:
mode:
Diffstat (limited to 'iseq.h')
-rw-r--r--iseq.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/iseq.h b/iseq.h
index 9a225180df..da2b678c1b 100644
--- a/iseq.h
+++ b/iseq.h
@@ -88,11 +88,15 @@ iseq_catch_table_bytes(int n)
struct iseq_compile_data_storage {
struct iseq_compile_data_storage *next;
- unsigned long pos;
- unsigned long size;
- char *buff;
+ unsigned int pos;
+ unsigned int size;
+ char buff[1]; /* flexible array */
};
+/* account for flexible array */
+#define SIZEOF_ISEQ_COMPILE_DATA_STORAGE \
+ (sizeof(struct iseq_compile_data_storage) - 1)
+
struct iseq_compile_data {
/* GC is needed */
const VALUE err_info;