git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/4] msvc: Fix a compiler warning due to an incorrect pointer cast

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Jan 20, 2010, 19:34 UTC
Message-ID
<4B575AB6.4060502@ramsay1.demon.co.uk>
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;
     }
 }
 
-- 
1.6.6
Next: Sebastian Schuberth
Message 1 of 2 in “msvc: Fix a compiler warning due to an incorrect pointer cast”
  1. 3/4 msvc: Fix a compiler warning due to an incorrect pointer castRamsay Jones, Jan 20, 2010
  2. Sebastian SchuberthJan 23, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.