more includes, better hash fix

This commit is contained in:
David Rose 2004-06-30 19:02:24 +00:00
parent 22d9be67dd
commit fab56fbd65
2 changed files with 8 additions and 1 deletions

View File

@ -216,5 +216,7 @@ generate_hash(HashGenerator &hashgen) const {
// We specifically don't call up to DCField::generate_hash(), since
// the parameter name is not actually significant to the hash.
// hashgen.add_int(get_flags());
if (get_flags() != 0) {
hashgen.add_int(get_flags());
}
}

View File

@ -21,6 +21,11 @@
#include "dcbase.h"
#include "dcDeclaration.h"
#include "dcPackerInterface.h"
class DCParameter;
class HashGenerator;
class DCField;
////////////////////////////////////////////////////////////////////
// Class : DCSwitch