mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Fix --trace-lxt2 compile error on MinGW, msg2684.
This commit is contained in:
parent
08e650a2b4
commit
6047049fc7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user