From 53dd088b5865963ac956a31b1dcdb68daab343df Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Thu, 8 Apr 2010 15:25:57 +0000 Subject: Various MSVC warning fixes about truncated 64 bit shifts and const pointers passed to free. llvm-svn: 100767 --- llvm/lib/Support/regengine.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/regengine.inc b/llvm/lib/Support/regengine.inc index bf55543dab8..7e41f96f359 100644 --- a/llvm/lib/Support/regengine.inc +++ b/llvm/lib/Support/regengine.inc @@ -185,7 +185,7 @@ matcher(struct re_guts *g, const char *string, size_t nmatch, endp = fast(m, start, stop, gf, gl); if (endp == NULL) { /* a miss */ free(m->pmatch); - free(m->lastpos); + free((void*)m->lastpos); STATETEARDOWN(m); return(REG_NOMATCH); } -- cgit v1.2.3