From 54c2dcf231f1dce1972a3b55fee1123ff8ff0229 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 19 May 2014 18:39:37 +0900 Subject: 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. --- include/mruby/dump.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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; }; -- cgit v1.2.3