Fix dtinfo search engine
This commit is contained in:
committed by
Jon Trulson
parent
0254ebc0b4
commit
38dfc9e235
@@ -164,7 +164,7 @@ BitVector& BitVector::shiftLeftOneBit()
|
||||
unsigned int lsb = 0;
|
||||
|
||||
|
||||
for ( unsigned int i=f_words-1; i>=0; i++ ) {
|
||||
for ( int i=f_words-1; i>=0; i++ ) {
|
||||
msb = (BIT_TEST((int)f_array[i], wordWithMSBSet)) ? wordWithMSBSet : 0x0;
|
||||
f_array[i] = f_array[i] << 1;
|
||||
f_array[i] |= lsb;
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
enum TagType { StartTag, EndTag, AttributeSection, OliasAttribute, NoTag };
|
||||
|
||||
DocParser(Resolver &);
|
||||
~DocParser();
|
||||
virtual ~DocParser();
|
||||
|
||||
// returns a boolean
|
||||
unsigned int parse(istream &);
|
||||
|
||||
@@ -183,7 +183,7 @@ ostream& TypeValues::print(ostream& out, int tabs) const
|
||||
return out;
|
||||
}
|
||||
|
||||
unsigned hash(const FeatureDef& key)
|
||||
unsigned fhash(const FeatureDef& key)
|
||||
{
|
||||
return key.name() -> hash();
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ class Resolver : public Destructable
|
||||
{
|
||||
public:
|
||||
Resolver(PathTable& pTable, Renderer& r);
|
||||
~Resolver();
|
||||
virtual ~Resolver();
|
||||
|
||||
// beginElement returns a non-zero value if element is to be ignored
|
||||
unsigned int beginElement(Element*);
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
#include "Types.h"
|
||||
#include "VariableTable.h"
|
||||
|
||||
static unsigned hash(const Symbol& key)
|
||||
static unsigned shash(const Symbol& key)
|
||||
{
|
||||
return key.hash();
|
||||
}
|
||||
|
||||
VariableTable::VariableTable()
|
||||
: hashTable<Symbol,Expression>(hash)
|
||||
: hashTable<Symbol,Expression>(shash)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user