[svn:parrot] r49149 - trunk/src/string

chromatic at svn.parrot.org chromatic at svn.parrot.org
Sun Sep 19 04:38:27 UTC 2010


Author: chromatic
Date: Sun Sep 19 04:38:26 2010
New Revision: 49149
URL: https://trac.parrot.org/parrot/changeset/49149

Log:
[str] Fixed a compiler warning.

Modified:
   trunk/src/string/api.c

Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c	Sun Sep 19 04:14:44 2010	(r49148)
+++ trunk/src/string/api.c	Sun Sep 19 04:38:26 2010	(r49149)
@@ -1010,7 +1010,7 @@
     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)


More information about the parrot-commits mailing list