From 6e38d95aed71bc3c3137b658b3976ceec8d5ef79 Mon Sep 17 00:00:00 2001
From: Andrea Shepard <andrea@persephoneslair.org>
Date: Thu, 17 Nov 2016 04:33:42 +0000
Subject: [PATCH] Fix charset alloc size

---
 src/internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/internal.h b/src/internal.h
index 885f8a03..dd40522d 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -182,13 +182,13 @@ typedef HCharsetWord *HCharset;
   ((~CHARSET_BIT_MASK_UP_TO_POS((bit))) & CHARSET_WHOLE_WORD_MASK)
 
 static inline HCharset copy_charset(HAllocator *mm__, HCharset in) {
-  HCharset cs = h_new(unsigned int, CHARSET_SIZE);
+  HCharset cs = h_new(HCharsetWord, CHARSET_WORDS);
   memcpy(cs, in, CHARSET_SIZE);
   return cs;
 }
 
 static inline HCharset new_charset(HAllocator* mm__) {
-  HCharset cs = h_new(unsigned int, CHARSET_SIZE);
+  HCharset cs = h_new(HCharsetWord, CHARSET_WORDS);
   memset(cs, 0, CHARSET_SIZE);
   return cs;
 }
-- 
GitLab