[svn:parrot] r39465 - trunk/src/ops
chromatic at svn.parrot.org
chromatic at svn.parrot.org
Tue Jun 9 08:01:09 UTC 2009
Author: chromatic
Date: Tue Jun 9 08:01:08 2009
New Revision: 39465
URL: https://trac.parrot.org/parrot/changeset/39465
Log:
[ops] Replaced expensive Parrot_sprintf_c() call in print_p_i op with a call to
the equivalent (and cheaper) Parrot_str_from_int() function.
Modified:
trunk/src/ops/io.ops
Modified: trunk/src/ops/io.ops
==============================================================================
--- trunk/src/ops/io.ops Tue Jun 9 07:59:21 2009 (r39464)
+++ trunk/src/ops/io.ops Tue Jun 9 08:01:08 2009 (r39465)
@@ -317,7 +317,7 @@
op print(invar PMC, in INT) :base_io {
if ($1) {
- STRING * const s = Parrot_sprintf_c(interp, INTVAL_FMT, $2);
+ STRING * const s = Parrot_str_from_int(interp, $2);
Parrot_io_putps(interp, $1, s);
}
}
More information about the parrot-commits
mailing list