From 4ba2dc26e13e418936d2e230e749bf72548cbc7e Mon Sep 17 00:00:00 2001 From: Jonathan Worthington Date: Fri, 28 Jan 2011 21:20:51 +0100 Subject: [PATCH] Fix incorrect attr access spotted by moritz++. --- src/Regex/Cursor-builtins.pir | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Regex/Cursor-builtins.pir b/src/Regex/Cursor-builtins.pir index 9aa9db5..86c392c 100644 --- a/src/Regex/Cursor-builtins.pir +++ b/src/Regex/Cursor-builtins.pir @@ -226,7 +226,8 @@ Regex::Cursor-builtins - builtin regexes for Cursor objects message .= ", couldn't find final " message .= goal message .= ' at line ' - $P0 = getattribute self, '$!target' + $P0 = get_hll_global ['Regex'], 'Cursor' + $P0 = getattribute self, $P0, '$!target' $P1 = get_hll_global ['HLL'], 'Compiler' $I0 = self.'pos'() $I0 = $P1.'lineof'($P0, $I0)