Author: juhliarik Date: Mon Dec 15 14:53:23 2008 New Revision: 54130 URL: http://svn.opensuse.org/viewcvs/yast?rev=54130&view=rev Log: added fix for strict aliasing Modified: branches/SuSE-Linux-11_0-Branch/python-bindings/src/YCPTypes.cc Modified: branches/SuSE-Linux-11_0-Branch/python-bindings/src/YCPTypes.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Linux-11_0-Branch/python-... ============================================================================== --- branches/SuSE-Linux-11_0-Branch/python-bindings/src/YCPTypes.cc (original) +++ branches/SuSE-Linux-11_0-Branch/python-bindings/src/YCPTypes.cc Mon Dec 15 14:53:23 2008 @@ -12,13 +12,13 @@ return false; if (PyType_Ready(&CodeType) < 0) return false; - Py_INCREF(&SymbolType); + Py_INCREF((PyObject *)&SymbolType); PyModule_AddObject(module, "Symbol", (PyObject *)&SymbolType); - Py_INCREF(&PathType); + Py_INCREF((PyObject *)&PathType); PyModule_AddObject(module, "Path", (PyObject *)&PathType); - Py_INCREF(&TermType); + Py_INCREF((PyObject *)&TermType); PyModule_AddObject(module, "Term", (PyObject *)&TermType); - Py_INCREF(&CodeType); + Py_INCREF((PyObject *)&CodeType); PyModule_AddObject(module, "Code", (PyObject *)&CodeType); return true; @@ -28,7 +28,7 @@ { if (PyType_Ready(&TermType) < 0) return false; - Py_INCREF(&TermType); + Py_INCREF((PyObject *)&TermType); PyModule_AddObject(module, "Term", (PyObject *)&TermType); return true; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org