Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

workaround for the string numification bug

  • Loading branch information...
commit 508ff2d13d210a751bedafdf49a7de297630e78b 1 parent db4d7d0
Moritz Lenz authored May 30, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/JSON/Tiny/Actions.pm
2  lib/JSON/Tiny/Actions.pm
@@ -40,7 +40,7 @@ method string($/) {
40 40
     }
41 41
     make $s;
42 42
 }
43  
-method value:sym<number>($/) { make +$/.Str }
  43
+method value:sym<number>($/) { make eval $/.Str }
44 44
 method value:sym<string>($/) { make $<string>.ast }
45 45
 method value:sym<true>($/)   { make Bool::True  }
46 46
 method value:sym<false>($/)  { make Bool::False }

0 notes on commit 508ff2d

Please sign in to comment.
Something went wrong with that request. Please try again.