]> git.saurik.com Git - cydia.git/blobdiff - CyteKit/PerlCompatibleRegEx.hpp
Represent Sections as objects, not as strings. Also, a much cleaner implementation...
[cydia.git] / CyteKit / PerlCompatibleRegEx.hpp
index 38a9462a3a97a497437d5f7a4cbf1f17b47cdfca..602f446c743572cdd07b62e3cd70530c448a52b5 100644 (file)
@@ -85,6 +85,7 @@ class Pcre {
         }
 
         pcre_fullinfo(code_, study_, PCRE_INFO_CAPTURECOUNT, &capture_);
+        _assert(capture_ >= 0);
         matches_ = new int[(capture_ + 1) * 3];
     }