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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user