[pypy-svn] r48334 - pypy/branch/pypy-rpython-unicode/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Tue Nov 6 12:42:27 CET 2007


Author: fijal
Date: Tue Nov  6 12:42:26 2007
New Revision: 48334

Modified:
   pypy/branch/pypy-rpython-unicode/rpython/lltypesystem/rstr.py
Log:
Simple version works as well


Modified: pypy/branch/pypy-rpython-unicode/rpython/lltypesystem/rstr.py
==============================================================================
--- pypy/branch/pypy-rpython-unicode/rpython/lltypesystem/rstr.py	(original)
+++ pypy/branch/pypy-rpython-unicode/rpython/lltypesystem/rstr.py	Tue Nov  6 12:42:26 2007
@@ -216,7 +216,7 @@
     def ll_strconcat(s1, s2):
         len1 = len(s1.chars)
         len2 = len(s2.chars)
-        if typeOf(s1).TO.chars.OF is Char and typeOf(s2).TO.chars.OF is Char:
+        if typeOf(s1).TO == STR and typeOf(s2).TO == STR:
             malloc = mallocstr
         else:
             malloc = mallocunicode



More information about the Pypy-commit mailing list