Skip to content

Instantly share code, notes, and snippets.

@usev6
Last active October 29, 2015 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usev6/8bd78b697a2e1367e381 to your computer and use it in GitHub Desktop.
Save usev6/8bd78b697a2e1367e381 to your computer and use it in GitHub Desktop.
unbreak jvm build
diff --git a/src/core/Str.pm b/src/core/Str.pm
index 4b9fdb0..5cf4dcd 100644
--- a/src/core/Str.pm
+++ b/src/core/Str.pm
@@ -907,7 +907,7 @@ my class Str does Stringy { # declared in BOOTSTRAP
$!todo = $!todo - 1;
my int $found = nqp::index($!string,$!match,$!pos);
$found < 0
- ?? $!todo = 0
+ ?? ($!todo = 0)
!! $target.push(self!next-part($found));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment