diff --git a/src/libCom/calc/postfix.c b/src/libCom/calc/postfix.c index cf178b466..257153809 100644 --- a/src/libCom/calc/postfix.c +++ b/src/libCom/calc/postfix.c @@ -366,7 +366,7 @@ short *perror; if ( sscanf(ppostfix,"%lg",&constant) != 1) { *ppostfix = '\0'; } else { - memcpy(ppostfix,&constant,8); + memcpy(ppostfix,(void *)&constant,8); } ppostfix+=8; diff --git a/src/libCom/postfix.c b/src/libCom/postfix.c index cf178b466..257153809 100644 --- a/src/libCom/postfix.c +++ b/src/libCom/postfix.c @@ -366,7 +366,7 @@ short *perror; if ( sscanf(ppostfix,"%lg",&constant) != 1) { *ppostfix = '\0'; } else { - memcpy(ppostfix,&constant,8); + memcpy(ppostfix,(void *)&constant,8); } ppostfix+=8;