cvar_t* sv_master;
char request [256];
- if (nextmaster >= sizeof (sv_masters) / sizeof (sv_masters[0]))
+ if (nextmaster >= (int)(sizeof (sv_masters) / sizeof (sv_masters[0])))
{
nextmaster = 0;
return NULL;
{
static int nextmaster = 0;
cvar_t* sv_master;
-
- if (nextmaster >= sizeof (sv_masters) / sizeof (sv_masters[0]))
+
+ if (nextmaster >= (int)(sizeof (sv_masters) / sizeof (sv_masters[0])))
{
nextmaster = 0;
return NULL;
struct qsockaddr svaddr;
char ipstring [32];
- if (net_message.cursize < sizeof(int))
+ if (net_message.cursize < (int)sizeof(int))
return;
// is the cache full?