Skip to content

Commit 591efd8

Browse files
committed
Fix FAILGOAL.
1 parent 98eb233 commit 591efd8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Regex/Cursor-builtins.pir

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,13 @@ Regex::Cursor-builtins - builtin regexes for Cursor objects
228228
message .= ", couldn't find final "
229229
message .= goal
230230
message .= ' at line '
231-
$P0 = get_hll_global ['Regex'], 'Cursor'
231+
$P0 = find_lex '$?CLASS'
232232
$P0 = getattribute self, $P0, '$!target'
233-
$P1 = get_hll_global ['HLL'], 'Compiler'
233+
$P1 = get_hll_global 'GLOBAL'
234+
$P1 = get_who $P1
235+
$P1 = $P1["HLL"]
236+
$P1 = get_who $P1
237+
$P1 = $P1["Compiler"]
234238
$I0 = self.'pos'()
235239
$I0 = $P1.'lineof'($P0, $I0)
236240
inc $I0

0 commit comments

Comments
 (0)