(buffer[pos+1 + keylength] == 0 ||
buffer[pos+1 + keylength] == '\\'))
{
- pos += 1 + keylength; // Skip \key
+ pos += 1 + (int)keylength; // Skip \key
if (buffer[pos] == '\\') pos++; // Skip \ before value.
for (j = 0;buffer[pos+j] && buffer[pos+j] != '\\' && j < (int)valuelength - 1;j++)
value[j] = buffer[pos+j];
pos2 = pos;
if (buffer[pos] == '\\')
{
- pos2 += 1 + keylength; // Skip \key
+ pos2 += 1 + (int)keylength; // Skip \key
if (buffer[pos2] == '\\') pos2++; // Skip \ before value.
for (;buffer[pos2] && buffer[pos2] != '\\';pos2++);
}
}
// bump it back to where we started parsing
- sb->readcount = watermark;
+ sb->readcount = (int)watermark;
firstskynoshadowtexture = loadmodel->num_textures;
loadmodel->num_textures += numsky;
dpsnprintf (line, linelength, "entity %i", n);
break;
case ev_function:
- if ((unsigned int)val->function < prog->progs_numfunctions)
+ if ((unsigned int)val->function < (unsigned int)prog->progs_numfunctions)
{
f = prog->functions + val->function;
dpsnprintf (line, linelength, "%s()", PRVM_GetString(prog, f->s_name));
dpsnprintf (line, linelength, "%i", i);
break;
case ev_function:
- if ((unsigned int)val->function < prog->progs_numfunctions)
+ if ((unsigned int)val->function < (unsigned int)prog->progs_numfunctions)
{
f = prog->functions + val->function;
strlcpy (line, PRVM_GetString (prog, f->s_name), linelength);