Author: Alex Gaynor <alex.gay...@gmail.com> Branch: Changeset: r48616:b994f7ec222e Date: 2011-10-30 21:01 -0400 http://bitbucket.org/pypy/pypy/changeset/b994f7ec222e/
Log: translation fix diff --git a/pypy/rpython/lltypesystem/rpbc.py b/pypy/rpython/lltypesystem/rpbc.py --- a/pypy/rpython/lltypesystem/rpbc.py +++ b/pypy/rpython/lltypesystem/rpbc.py @@ -116,7 +116,7 @@ fields.append((row.attrname, row.fntype)) kwds = {'hints': {'immutable': True}} return Ptr(Struct('specfunc', *fields, **kwds)) - + def create_specfunc(self): return malloc(self.lowleveltype.TO, immortal=True) @@ -316,7 +316,7 @@ if l == range(len(r_from.descriptions)): r = None else: - r = inputconst(Ptr(Array(Char)), t) + r = inputconst(Ptr(Array(Char, hints={'nolength': True})), t) r_from._conversion_tables[r_to] = r return r @@ -404,12 +404,12 @@ # ____________________________________________________________ -##def rtype_call_memo(hop): +##def rtype_call_memo(hop): ## memo_table = hop.args_v[0].value ## if memo_table.s_result.is_constant(): ## return hop.inputconst(hop.r_result, memo_table.s_result.const) -## fieldname = memo_table.fieldname -## assert hop.nb_args == 2, "XXX" +## fieldname = memo_table.fieldname +## assert hop.nb_args == 2, "XXX" ## r_pbc = hop.args_r[1] ## assert isinstance(r_pbc, (MultipleFrozenPBCRepr, ClassesPBCRepr)) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit