Skip to content

Commit

Permalink
[str] Fixed a compiler warning.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@49149 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
chromatic committed Sep 19, 2010
1 parent 95dfaef commit 7f213aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/string/api.c
Expand Up @@ -1010,7 +1010,7 @@ Parrot_str_substr(PARROT_INTERP,
ASSERT_STRING_SANITY(src);

/* Allow regexes to return $' easily for "aaa" =~ /aaa/ */
if (offset == src_length || length < 1)
if (true_offset == src_length || length < 1)
return CONST_STRING(interp, "");

if (offset < 0)
Expand Down

0 comments on commit 7f213aa

Please sign in to comment.