git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/4] msvc: Fix a compiler warning due to an incorrect pointer cast
@ 2010-01-20 19:34 Ramsay Jones
  2010-01-23  0:08 ` Sebastian Schuberth
  0 siblings, 1 reply; 2+ messages in thread
From: Ramsay Jones @ 2010-01-20 19:34 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: Johannes Sixt, GIT Mailing-list


Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---

The warning in question being:

    .../regex.c(2811) : warning C4047: '=' : 'regoff_t *' differs in levels \
of indirection from 'int'

Note also that the final line of context in the diff below contains an ^L
character, which will hopefully find it's way to the list...

ATB,
Ramsay Jones

 compat/regex/regex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/compat/regex/regex.c b/compat/regex/regex.c
index 67d5c37..556d8ab 100644
--- a/compat/regex/regex.c
+++ b/compat/regex/regex.c
@@ -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
-- 
1.6.6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/4] msvc: Fix a compiler warning due to an incorrect pointer   cast
  2010-01-20 19:34 [PATCH 3/4] msvc: Fix a compiler warning due to an incorrect pointer cast Ramsay Jones
@ 2010-01-23  0:08 ` Sebastian Schuberth
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Schuberth @ 2010-01-23  0:08 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, Johannes Sixt

On 20.01.2010 20:34, Ramsay Jones wrote:

> Signed-off-by: Ramsay Jones<ramsay@ramsay1.demon.co.uk>
> ---
>
> The warning in question being:
>
>      .../regex.c(2811) : warning C4047: '=' : 'regoff_t *' differs in levels \
> of indirection from 'int'
>
> Note also that the final line of context in the diff below contains an ^L
> character, which will hopefully find it's way to the list...

Acked-by: Sebastian Schuberth <sschuberth@gmail.com>

-- 
Sebastian Schuberth

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-23  0:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20 19:34 [PATCH 3/4] msvc: Fix a compiler warning due to an incorrect pointer cast Ramsay Jones
2010-01-23  0:08 ` Sebastian Schuberth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).