[svn:parrot] r48243 - trunk/runtime/parrot/library

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Sat Jul 31 23:52:57 UTC 2010


Author: pmichaud
Date: Sat Jul 31 23:52:57 2010
New Revision: 48243
URL: https://trac.parrot.org/parrot/changeset/48243

Log:
Revert "Avoid creating a PMC here, rely on autoboxing instead."

This reverts commit b102dce21f9d664c7224b984c466b0298465d4d3 (r48242).
.ACCEPTS here is supposed to always return a boolean value;
this causes it to return an integer instead.  Rakudo fails
t/spec/S02-builtin_data_types/bool.t unless this commit is reverted.

Modified:
   trunk/runtime/parrot/library/P6object.pir

Modified: trunk/runtime/parrot/library/P6object.pir
==============================================================================
--- trunk/runtime/parrot/library/P6object.pir	Sat Jul 31 19:23:15 2010	(r48242)
+++ trunk/runtime/parrot/library/P6object.pir	Sat Jul 31 23:52:57 2010	(r48243)
@@ -818,7 +818,9 @@
     $I0 = 1
 
   end:
-    .return ($I0)
+    $P0 = new ['Boolean']
+    assign $P0, $I0
+    .return ($P0)
 .end
 
 


More information about the parrot-commits mailing list