summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-19 18:39:37 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-19 18:39:37 +0900
commit54c2dcf231f1dce1972a3b55fee1123ff8ff0229 (patch)
tree94a432a8f8fb9e626d0da652ba6fe00873036efe /include
parent91a025b1e663f9d6516c28bbfbc6cf03225e46fc (diff)
downloadmruby-54c2dcf231f1dce1972a3b55fee1123ff8ff0229.tar.gz
mruby-54c2dcf231f1dce1972a3b55fee1123ff8ff0229.zip
allow NULL (no variable) in lvar section of mrb format; fix #2294
This fix use UINT16_MAX for NULL symbol tag, that means maximum symbol length is not UINT16_MAX-1.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/dump.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/dump.h b/include/mruby/dump.h
index 1b691ea1a..fc79f1f4b 100644
--- a/include/mruby/dump.h
+++ b/include/mruby/dump.h
@@ -94,6 +94,8 @@ struct rite_section_lv_header {
RITE_SECTION_HEADER;
};
+#define RITE_LV_NULL_MARK UINT16_MAX
+
struct rite_binary_footer {
RITE_SECTION_HEADER;
};