replaced unions by memcpy
This commit is contained in:
11
undump.c
11
undump.c
@@ -3,7 +3,7 @@
|
|||||||
** load bytecodes from files
|
** load bytecodes from files
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char* rcs_undump="$Id: undump.c,v 1.14 1996/03/14 17:31:15 lhf Exp $";
|
char* rcs_undump="$Id: undump.c,v 1.15 1996/11/07 13:59:51 lhf Exp lhf $";
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -144,12 +144,9 @@ static void Unthread(Byte* code, int i, int v)
|
|||||||
{
|
{
|
||||||
Word w;
|
Word w;
|
||||||
Byte* p=code+i;
|
Byte* p=code+i;
|
||||||
Byte* c=&w;
|
memcpy(&w,p,sizeof(w));
|
||||||
get_word(w,p);
|
i=w; w=v;
|
||||||
i=w;
|
memcpy(p,&w,sizeof(w));
|
||||||
w=v;
|
|
||||||
p[-2]=c[0];
|
|
||||||
p[-1]=c[1];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user