Commit 9d6db08c authored by Anders Blomdell's avatar Anders Blomdell Committed by Sven Gestegård Robertz
Browse files

Run on non-Darwin + removed bogus hash calculations.

parent 561e6acc
......@@ -17,7 +17,7 @@ ifeq ($(UNAME_S),Darwin)
cd simple ; sh && sh
$(MAKE) -C wiki_example test
$(MAKE) -C user_types test
$(MAKE) -C user_types all
$(MAKE) -C duck_typing test
$(MAKE) -C twoway test
......@@ -637,8 +637,7 @@ class struct(type_decl):
return not self.__eq__(other)
def __hash__(self):
tmp = str(self.field)
return hash(self.__class__) ^ hash(tmp)
return hash(self.__class__) ^ hash(self.field)
def encode_decl(self, encoder):
......@@ -961,6 +960,11 @@ class Decoder(Codec):
print ("No handler for %s" % )
for key, value in self.handlers.iteritems():
if key == decl:
print "but value %s == decl %s" % (key,decl)
print "hashes %d : %d" % (hash(key),hash(decl))
raise Exception()
def decode(self):
while True:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment