summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-18 00:32:35 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-18 00:32:35 +0000
commit77300844a4607a7ad97e0a1c0907770f22e7b4af (patch)
tree840b1a17c77e16e42791693d07848d1fff6c0ea9 /include
parent8827eca1daf82ac647a87b10f2aa1104faf17ef9 (diff)
Reduce size of max number of bytes in a bitfield from a 4 or 8 byte field to a 1 byte field (unsigned char).
This still allows storage of 8*255 bits, which is MORE than enough (for the interested, its 2040 bits) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5761 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/hashcomp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index bf1996fac..805929f5d 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -397,7 +397,7 @@ namespace irc
* Both freebits and bits will ALWAYS be the
* same length.
*/
- size_t bits_size;
+ unsigned char bits_size;
public:
/** Allocate the initial memory for bits and
* freebits and zero the memory.
@@ -446,7 +446,7 @@ namespace irc
* as there are an equal number of bytes allocated
* for the freebits array.
*/
- size_t GetSize();
+ unsigned char GetSize();
};
/** The irc_char_traits class is used for RFC-style comparison of strings.