Author: Armin Rigo <[email protected]>
Branch: stringbuilder-perf
Changeset: r72018:a919095552d2
Date: 2014-06-10 18:57 +0200
http://bitbucket.org/pypy/pypy/changeset/a919095552d2/
Log: Fix the test
diff --git a/rpython/rtyper/lltypesystem/rbuilder.py
b/rpython/rtyper/lltypesystem/rbuilder.py
--- a/rpython/rtyper/lltypesystem/rbuilder.py
+++ b/rpython/rtyper/lltypesystem/rbuilder.py
@@ -283,8 +283,9 @@
ofs = ll_builder.current_ofs
end = ofs + 2 * ll_builder.charsize
if uint_gt(end, ll_builder.current_end):
- ofs = ll_builder.grow(ll_builder, 2)
- end = ofs + 2 * ll_builder.charsize
+ BaseStringBuilderRepr._ll_append_char(ll_builder, char0)
+ BaseStringBuilderRepr._ll_append_char(ll_builder, char1)
+ return
ll_builder.current_ofs = end
# --- no GC! ---
raw = rffi.cast(rffi.CCHARP, ll_builder.current_buf)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit