You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
585 B
14 lines
585 B
4 months ago
|
diff --git a/lib/libTrie/TrieNode.cc b/lib/libTrie/TrieNode.cc
|
||
|
index b379856..5d87279 100644
|
||
|
--- a/lib/libTrie/TrieNode.cc
|
||
|
+++ b/lib/libTrie/TrieNode.cc
|
||
|
@@ -32,7 +32,7 @@ TrieNode::add(char const *aString, size_t theLength, void *privatedata, TrieChar
|
||
|
/* We trust that privatedata and existant keys have already been checked */
|
||
|
|
||
|
if (theLength) {
|
||
|
- int index = transform ? (*transform)(*aString): *aString;
|
||
|
+ const unsigned char index = transform ? (*transform)(*aString): *aString;
|
||
|
|
||
|
if (!internal[index])
|
||
|
internal[index] = new TrieNode;
|