Author: Matti Picus <matti.pi...@gmail.com>
Branch: py3.5
Changeset: r90716:e08e9c6ffbd8
Date: 2017-03-15 22:16 +0200
http://bitbucket.org/pypy/pypy/changeset/e08e9c6ffbd8/

Log:    fix translation (arigato around)

diff --git a/pypy/module/cpyext/modsupport.py b/pypy/module/cpyext/modsupport.py
--- a/pypy/module/cpyext/modsupport.py
+++ b/pypy/module/cpyext/modsupport.py
@@ -23,9 +23,9 @@
     Most uses of this function should be using PyModule_Create()
     instead; only use this if you are sure you need it."""
 
-    modname = rffi.charp2str(module.c_m_name)
+    modname = rffi.charp2str(rffi.cast(rffi.CCHARP, module.c_m_name))
     if module.c_m_doc:
-        doc = rffi.charp2str(module.c_m_doc)
+        doc = rffi.charp2str(rffi.cast(rffi.CCHARP, module.c_m_doc))
     else:
         doc = None
     methods = module.c_m_methods
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to