aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-10-31 19:06:36 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:25 -0300
commitcaed911998b542620961b988b4fddf7654b89db7 (patch)
treeb8a629f73009e80c291c95914c031af1cd42ffd0
parent2b677ef0eb94f15b257f7a6ccf7e9447c32d36b9 (diff)
Fix bug 1037 - "shiboken fails to build against python 3.2 (both normal and -dbg) on i386 (and others)"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--generator/cppgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/cppgenerator.cpp b/generator/cppgenerator.cpp
index d49fc482..9fe0c064 100644
--- a/generator/cppgenerator.cpp
+++ b/generator/cppgenerator.cpp
@@ -4140,7 +4140,7 @@ void CppGenerator::writeReturnValueHeuristics(QTextStream& s, const AbstractMeta
void CppGenerator::writeHashFunction(QTextStream& s, const AbstractMetaClass* metaClass)
{
- s << "static long " << cpythonBaseName(metaClass) << "_HashFunc(PyObject* self) {" << endl;
+ s << "static Py_hash_t " << cpythonBaseName(metaClass) << "_HashFunc(PyObject* self) {" << endl;
writeCppSelfDefinition(s, metaClass);
s << INDENT << "return " << metaClass->typeEntry()->hashFunction() << '(';
s << (isObjectType(metaClass) ? "" : "*") << CPP_SELF_VAR << ");" << endl;