diff -up inventor/lib/database/src/so/SoOutput.c++.s390x inventor/lib/database/src/so/SoOutput.c++ --- inventor/lib/database/src/so/SoOutput.c++.s390x 2009-04-22 23:09:59.000000000 +0200 +++ inventor/lib/database/src/so/SoOutput.c++ 2009-04-22 23:09:25.000000000 +0200 @@ -1462,7 +1462,7 @@ SoOutput::findReference(const SoBase *ba // Generates a CC warning. Ho hum. if (refDict->find((unsigned long) base, ref)) -#if (_MIPS_SZPTR == 64 || __ia64__ || __x86_64__ || __powerpc64__) +#if (_MIPS_SZPTR == 64 || __ia64__ || __x86_64__ || __powerpc64__ || __s390x__) referenceId = (int) ((unsigned long) ref); #else referenceId = (int)ref;