From f063feb3cbf415f73906ecc7cda53481c373d775 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 2 Sep 1994 13:40:55 +0000 Subject: [PATCH] Cast of memcpy arg to suppress warning message. --- src/libCom/calc/postfix.c | 2 +- src/libCom/postfix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;