Code

msvc: Fix a compiler warning due to an incorrect pointer cast
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 20 Jan 2010 19:34:14 +0000 (19:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 Jan 2010 00:15:16 +0000 (16:15 -0800)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Acked-by: Sebastian Schuberth <sschuberth@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regex.c

index 67d5c370a04c0630089e8601eafde5c05957959c..556d8ab11f40550335066f491d08383557e02a00 100644 (file)
@@ -2808,7 +2808,7 @@ re_set_registers (bufp, regs, num_regs, starts, ends)
     {
       bufp->regs_allocated = REGS_UNALLOCATED;
       regs->num_regs = 0;
-      regs->start = regs->end = (regoff_t) 0;
+      regs->start = regs->end = (regoff_t *) 0;
     }
 }
 \f