mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
Change pointer_t to unsigned and clean up the mess.
It doesn't make sense to have negative pointers. The size of the commit is from enabling gcc's -Wtype-limits warning and cleaning up that mess too.
This commit is contained in:
parent
7701393bd4
commit
6eb6b6c0ba
25 changed files with 55 additions and 57 deletions
|
@ -395,8 +395,7 @@ PR_Get_Lineno_Addr (progs_t *pr, pr_lineno_t *lineno)
|
|||
|
||||
if (lineno->line)
|
||||
return lineno->fa.addr;
|
||||
if (lineno->fa.func >= 0
|
||||
&& lineno->fa.func < pr->debug->num_auxfunctions) {
|
||||
if (lineno->fa.func < pr->debug->num_auxfunctions) {
|
||||
f = &pr->auxfunctions[lineno->fa.func];
|
||||
return pr->pr_functions[f->function].first_statement;
|
||||
}
|
||||
|
@ -701,7 +700,7 @@ def_string (progs_t *pr, pr_int_t ofs, dstring_t *dstr)
|
|||
}
|
||||
|
||||
static const char *
|
||||
global_string (progs_t *pr, pr_int_t ofs, etype_t type, int contents)
|
||||
global_string (progs_t *pr, pointer_t ofs, etype_t type, int contents)
|
||||
{
|
||||
static dstring_t *line = NULL;
|
||||
ddef_t *def = NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue