mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-22 18:31:27 +00:00
[gamecode] Correct type of return address in stack
This is another one of those "why signed?" things: can't have negative return addresses.
This commit is contained in:
parent
cf3106ce28
commit
8e5c2c6534
2 changed files with 2 additions and 2 deletions
|
@ -1801,7 +1801,7 @@ extern const char *pr_gametype;
|
|||
typedef struct strref_s strref_t;
|
||||
|
||||
typedef struct {
|
||||
pr_int_t staddr; ///< Return statement.
|
||||
pr_uint_t staddr; ///< Return statement.
|
||||
bfunction_t *func; ///< Calling function.
|
||||
strref_t *tstr; ///< Linked list of temporary strings.
|
||||
} prstack_t;
|
||||
|
|
|
@ -1721,7 +1721,7 @@ dump_frame (progs_t *pr, prstack_t *frame)
|
|||
pr_lineno_t *lineno = PR_Find_Lineno (pr, frame->staddr);
|
||||
pr_auxfunction_t *func = PR_Get_Lineno_Func (pr, lineno);
|
||||
pr_uint_t line = PR_Get_Lineno_Line (pr, lineno);
|
||||
pr_int_t addr = PR_Get_Lineno_Addr (pr, lineno);
|
||||
pr_uint_t addr = PR_Get_Lineno_Addr (pr, lineno);
|
||||
|
||||
line += func->source_line;
|
||||
if (addr == frame->staddr) {
|
||||
|
|
Loading…
Reference in a new issue