[svn:parrot] r45038 - trunk/t/codingstd

Util at svn.parrot.org Util at svn.parrot.org
Thu Mar 18 22:25:10 UTC 2010


Author: Util
Date: Thu Mar 18 22:25:09 2010
New Revision: 45038
URL: https://trac.parrot.org/parrot/changeset/45038

Log:
[t] c_parens.t - Fixed lurking sort bug - s/cmp/<=>/

Modified:
   trunk/t/codingstd/c_parens.t

Modified: trunk/t/codingstd/c_parens.t
==============================================================================
--- trunk/t/codingstd/c_parens.t	Thu Mar 18 22:17:53 2010	(r45037)
+++ trunk/t/codingstd/c_parens.t	Thu Mar 18 22:25:09 2010	(r45038)
@@ -33,7 +33,7 @@
 
 =cut
 
-my $keywords = join '|' => sort { length $a cmp length $b } qw/
+my $keywords = join '|' => sort { length $a <=> length $b } qw/
     auto      double    int       struct    INTVAL
     break     else      long      switch    UINTVAL
     case      enum      register  typedef   FLOATVAL


More information about the parrot-commits mailing list