no need for memmove here

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6868 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2012-08-25 10:05:09 +00:00
parent bfda69a7f1
commit 4af75e15e0
+2 -2
View File
@@ -849,9 +849,9 @@ template<class T> inline void bigswap(T *buf, int len) { if(*(const uchar *)&isl
if(isbigendian())\
{ \
enet_uint32 big = endianswap(address);\
memmove(&ip, &big, 4);\
memcpy(&ip, &big, 4);\
}\
else memmove(&ip, &address, 4);\
else memcpy(&ip, &address, 4);\
/* workaround for some C platforms that have these two functions as macros - not used anywhere */
#ifdef getchar