src/server/util/util.c

changeset 103
d3b514e2ddbd
parent 102
136a76e293b5
child 104
a8acbb12f27c
--- a/src/server/util/util.c	Sat Oct 17 22:24:38 2015 +0200
+++ b/src/server/util/util.c	Sat Oct 17 23:05:23 2015 +0200
@@ -607,10 +607,12 @@
 
 static const int MSTR2NUM_HT_MASK = 0xf;
 
-static const struct {
+struct mstr2num_ht {
     unsigned ucmstr; // Uppercase 3 character month string in a machine word
     int mnum; // 0-based month number for this month string
-} MSTR2NUM_HT[MSTR2NUM_HT_MASK + 1] = {
+};
+
+struct mstr2num_ht MSTR2NUM_HT[] = {
     { 'A' << 16 | 'P' << 8 | 'R', 3 },
     { 'S' << 16 | 'E' << 8 | 'P', 8 },
     { 'M' << 16 | 'A' << 8 | 'Y', 4 },

mercurial