mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-14 18:54:51 +00:00
Some fixes for OS X:
- Find enet properly - Type conversion of size_t's in JS This was SVN commit r6324.
This commit is contained in:
@@ -5,13 +5,13 @@
|
||||
#include "ScriptCustomTypes.h"
|
||||
|
||||
template <>
|
||||
CStrW ToNetString(const unsigned &val)
|
||||
CStrW ToNetString(const size_t &val)
|
||||
{
|
||||
return CStrW(val);
|
||||
}
|
||||
|
||||
template <>
|
||||
void SetFromNetString(unsigned &val, const CStrW& string)
|
||||
void SetFromNetString(size_t &val, const CStrW& string)
|
||||
{
|
||||
val=string.ToUInt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user