diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-20 15:50:10 -0200 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-01-20 16:03:50 -0200 |
commit | cd12b72f152f970a86cac12f62a0f9d1edd3f6d8 (patch) | |
tree | 5ac48e13c445c5510e0e3f8bbcd7b4e078ee30f1 /shibokengenerator.cpp | |
parent | 9ac13a27e49439ffcef2291da01ee4c8b6b930d0 (diff) |
Add special conversion rules to the char type.
A type is convertible to char if it is a number or a 1-sized char.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'shibokengenerator.cpp')
-rw-r--r-- | shibokengenerator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shibokengenerator.cpp b/shibokengenerator.cpp index 0c22050fc..673587710 100644 --- a/shibokengenerator.cpp +++ b/shibokengenerator.cpp @@ -65,9 +65,9 @@ void ShibokenGenerator::initPrimitiveTypesCorrespondences() m_pythonPrimitiveTypeName["bool"] = "PyBool"; // PyInt - m_pythonPrimitiveTypeName["char"] = "PyInt"; - m_pythonPrimitiveTypeName["signed char"] = "PyInt"; - m_pythonPrimitiveTypeName["unsigned char"] = "PyInt"; + m_pythonPrimitiveTypeName["char"] = "SbkChar"; + m_pythonPrimitiveTypeName["signed char"] = "SbkChar"; + m_pythonPrimitiveTypeName["unsigned char"] = "SbkChar"; m_pythonPrimitiveTypeName["int"] = "PyInt"; m_pythonPrimitiveTypeName["signed int"] = "PyInt"; m_pythonPrimitiveTypeName["uint"] = "PyInt"; |