From 6047049fc7a70200bd197beedf042805f131c506 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 11 Oct 2018 21:03:49 -0400 Subject: [PATCH] Fix --trace-lxt2 compile error on MinGW, msg2684. --- include/gtkwave/fstapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/gtkwave/fstapi.c b/include/gtkwave/fstapi.c index 016511844..280721b0e 100644 --- a/include/gtkwave/fstapi.c +++ b/include/gtkwave/fstapi.c @@ -295,7 +295,7 @@ return(realpath(path, resolved_path)); #ifdef __MINGW32__ if(!resolved_path) { - resolved_path = (unsigned char *)malloc(PATH_MAX+1); + resolved_path = (char *)malloc(PATH_MAX+1); } return(_fullpath(resolved_path, path, PATH_MAX)); #else @@ -2164,7 +2164,7 @@ if(xc && !xc->already_in_close && !xc->already_in_flush) #ifdef __MINGW32__ { int flen = strlen(xc->filename); - char *hf = calloc(1, flen + 6); + char *hf = (char*)calloc(1, flen + 6); strcpy(hf, xc->filename); if(xc->compress_hier)