aboutsummaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-04-08 15:25:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-04-08 15:25:57 +0000
commit454c4ce47963861a6bf159c2700e5a3059fbc298 (patch)
treed0d764f72068fc3ddabf8f25f26c49c3189a4dce /lib/Support
parent180c3d4edd1219832be8f2cf91f5f73f9757c36f (diff)
Various MSVC warning fixes about truncated 64 bit shifts and const pointers passed to free.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/regengine.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/regengine.inc b/lib/Support/regengine.inc
index bf55543dab..7e41f96f35 100644
--- a/lib/Support/regengine.inc
+++ b/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);
}