From 04bc9005aeeebc7b1af90f74c4873b3a835d67ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Sep 2013 18:14:58 +0200 Subject: TagType: reduce the enum size to 1 byte Reduce the TagItem overhead. --- src/tag/TagItem.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tag/TagItem.hxx') diff --git a/src/tag/TagItem.hxx b/src/tag/TagItem.hxx index f661a273b..a2924f2af 100644 --- a/src/tag/TagItem.hxx +++ b/src/tag/TagItem.hxx @@ -35,7 +35,7 @@ struct TagItem { /** * the value of this tag; this is a variable length string */ - char value[sizeof(long)]; + char value[sizeof(long) - sizeof(type)]; TagItem() = default; TagItem(const TagItem &other) = delete; -- cgit v1.2.3