--- qp8.10.orig/src/objects.h 2009-11-30 20:50:48.000000000 +1300 +++ qp8.10/src/objects.h 2009-11-30 20:57:09.000000000 +1300 @@ -1236,18 +1236,12 @@ << this->getName() << "\" "; #ifndef WIN32 - switch (hasAssociatedItem()) - { - case AssociatedNone: - std::cerr << "(no info)"; - break; - case AssociatedInteger: - std::cerr << "int: " << getAssociatedInteger(); - break; - case AssociatedAtom: - std::cerr << "atom: [" << std::hex << (wordptr) getAssociatedAtom() << std::dec << "]"; - break; - } + if (hasAssociatedInteger()) + std::cerr << "int: " << getAssociatedInteger(); + else if (hasAssociatedAtom()) + std::cerr << "atom: [" << std::hex << (wordptr) getAssociatedAtom() << std::dec << "]"; + else + std::cerr << "(no info)"; #endif } #endif