* doc/as.texinfo: Updated for -MD option.
[deliverable/binutils-gdb.git] / gdb / gnu-regex.c
index 062fbc683d1b395e3cc5f661b95fae6b1f312f4b..dec0cf12f2abdb2e8b245009b0330616ce7cf5ac 100644 (file)
@@ -34,6 +34,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 #include "defs.h"
 #include "gdb_string.h"
+#undef malloc
+#define malloc xmalloc
 
 /*
  * Define the syntax stuff, so we can do the \<...\> things.
@@ -1124,7 +1126,7 @@ re_match_2 (pbufp, string1, size1, string2, size2, pos, regs, mstop)
   /* Initialize \) text positions to -1
      to mark ones that no \( or \) has been seen for.  */
 
-  for (mcnt = 0; mcnt < sizeof (regend) / sizeof (*regend); mcnt++)
+  for (mcnt = 0; mcnt < (int) (sizeof (regend) / sizeof (*regend)); mcnt++)
     regend[mcnt] = (unsigned char *) -1;
 
   /* `p' scans through the pattern as `d' scans through the data.
This page took 0.023527 seconds and 4 git commands to generate.