From 8ad2c58c56ca4b5918cedf59be3f42e1d6a6cde7 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Fri, 12 Dec 2008 23:01:39 +0000 Subject: [PATCH] Slightly improved test case --- testmemleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testmemleak.cpp b/testmemleak.cpp index 9f6f6d625..4914c2fdf 100644 --- a/testmemleak.cpp +++ b/testmemleak.cpp @@ -1049,7 +1049,7 @@ private: check( "void foo()\n" "{\n" " char *a = (char *)malloc(10);\n" - " a = a + 10;\n" + " a = (void *)a + 10;\n" " free(a - 10);\n" "}\n" );