min = 666;
for(max=i=0;i<t->numfilenames;i++)
{
- k = strlen(t->filenames[i]);
+ k = (int)strlen(t->filenames[i]);
k -= 9;
if(max < k)
max = k;
min = k;
len[i] = k;
}
- o = strlen(s);
+ o = (int)strlen(s);
for(i=0;i<t->numfilenames;i++)
{
int lumpofs = 0, lumplen = 0;
char t[MAX_QPATH];
if (GetMapList(s, t, sizeof(t)))
{
- i = strlen(t) - strlen(s);
+ i = (int)(strlen(t) - strlen(s));
strcpy((char*)s, t);
if(s2[0]) //add back chars after cursor
strcpy(&key_lines[edit_line][key_linepos], s2);
void CSQC_AddPrintText (const char *msg)
{
- int i;
+ size_t i;
if(!csqc_loaded || !CSQC_Parse_Print)
{
Con_Print(msg);
length = l;
}
memcpy(data, my_png.tmpBuf + my_png.tmpi, length);
- my_png.tmpi += length;
- Com_HexDumpToConsole(data, length);
+ my_png.tmpi += (int)length;
+ Com_HexDumpToConsole(data, (int)length);
}
void PNG_error_fn(void *png, const char *message)
if (keydown[K_CTRL])
con_backscroll = 0;
else
- key_linepos = strlen(key_lines[edit_line]);
+ key_linepos = (int)strlen(key_lines[edit_line]);
return;
}
qcstrbuffer_t *b;
char *k;
const char *sep;
- int i, l;
+ int i;
+ size_t l;
VM_SAFEPARMCOUNT(2, VM_buf_implode);
b = BUFSTR_BUFFER((int)PRVM_G_FLOAT(OFS_PARM0));