Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
use a root namespace for Math::Rand
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Jul 21, 2009
1 parent 38b5f8f commit 9f9e594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Compiler.pir
Expand Up @@ -104,7 +104,7 @@ Markdown::HTML::Compiler implements a compiler for MAST nodes.
if $S1 == '@' goto L_dec
if $S1 == ':' goto L_raw
.local pmc rand
rand = get_hll_global [ 'Math'; 'Rand' ], 'rand'
rand = get_root_global [ 'parrot'; 'Math'; 'Rand' ], 'rand'
$I0 = rand()
# roughly 10% raw, 45% hex, 45% dec
$I0 %= 20
Expand Down

0 comments on commit 9f9e594

Please sign in to comment.