Skip to content

Commit

Permalink
[glue] Replaced a use of substr_s_i_i_s with a different op sequence …
Browse files Browse the repository at this point in the history
…to avoid

strange behavior and make Rakudo work again.
  • Loading branch information
chromatic committed Apr 16, 2010
1 parent 3636234 commit cde3507
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/glue/contextuals.pir
Expand Up @@ -8,11 +8,12 @@

# next, strip twigil and search PROCESS package
.local string pkgname
pkgname = clone name
substr pkgname, 1, 1, ''
$P0 = get_hll_global ['PROCESS'], pkgname
$S0 = substr name, 0, 1
$S1 = substr name, 2
pkgname = concat $S0, $S1
$P0 = get_hll_global ['PROCESS'], pkgname
unless null $P0 goto done
$P0 = get_global pkgname
$P0 = get_global pkgname
unless null $P0 goto done

fail:
Expand Down

0 comments on commit cde3507

Please sign in to comment.