diff --git a/engine/qclib/pr_exec.c b/engine/qclib/pr_exec.c index ee1cb21a8..8e43313fe 100644 --- a/engine/qclib/pr_exec.c +++ b/engine/qclib/pr_exec.c @@ -92,7 +92,6 @@ //============================================================================= -char *PR_SaveCallStack (progfuncs_t *progfuncs, char *buf, int *bufofs, int bufmax); /* ================= PR_PrintStatement @@ -1604,7 +1603,7 @@ static casecmprange_t casecmprange[] = static int PR_NoDebugVM(progfuncs_t *fte_restrict progfuncs) { char stack[4*1024]; - int ofs; + size_t ofs; strcpy(stack, "This platform does not support QC debugging\nStack Trace:"); ofs = strlen(stack); PR_SaveCallStack (progfuncs, stack, &ofs, sizeof(stack)); diff --git a/engine/qclib/progsint.h b/engine/qclib/progsint.h index fa8dc0b1b..4eff5fd97 100644 --- a/engine/qclib/progsint.h +++ b/engine/qclib/progsint.h @@ -467,7 +467,7 @@ void PDECL PR_GenerateStatementString (pubprogfuncs_t *progfuncs, int statementn fdef_t *PDECL ED_FieldInfo (pubprogfuncs_t *progfuncs, unsigned int *count); char *PDECL PR_UglyValueString (pubprogfuncs_t *progfuncs, etype_t type, eval_t *val); pbool PDECL ED_ParseEval (pubprogfuncs_t *progfuncs, eval_t *eval, int type, const char *s); - +char *PR_SaveCallStack (progfuncs_t *progfuncs, char *buf, size_t *bufofs, size_t bufmax); prclocks_t Sys_GetClockRate(void); #endif