mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
Some signed/unsigned formatting stuff found by lint.
This commit is contained in:
parent
785307fd9a
commit
b057b6cb26
4 changed files with 6 additions and 6 deletions
|
@ -821,7 +821,7 @@ print_expr (expr_t *e)
|
|||
printf ("%d", e->e.integer_val);
|
||||
break;
|
||||
case ex_uinteger:
|
||||
printf ("%d", e->e.uinteger_val);
|
||||
printf ("%u", e->e.uinteger_val);
|
||||
break;
|
||||
case ex_short:
|
||||
printf ("%d", e->e.short_val);
|
||||
|
|
|
@ -300,7 +300,7 @@ WriteProgdefs (const char *filename)
|
|||
while ((c = fgetc (f)) != EOF)
|
||||
CRC_ProcessByte (&crc, (byte) c);
|
||||
|
||||
fprintf (f, "#define PROGHEADER_CRC %i\n", crc);
|
||||
fprintf (f, "#define PROGHEADER_CRC %u\n", crc);
|
||||
fclose (f);
|
||||
|
||||
return crc;
|
||||
|
|
|
@ -71,7 +71,7 @@ dump_lines (progs_t *pr)
|
|||
func = pr->pr_functions + aux_func->function;
|
||||
}
|
||||
|
||||
printf ("%5d %5d", lineno->fa.addr, lineno->line);
|
||||
printf ("%5u %5u", lineno->fa.addr, lineno->line);
|
||||
line = addr = -1;
|
||||
if (aux_func)
|
||||
line = aux_func->source_line + lineno->line;
|
||||
|
@ -79,11 +79,11 @@ dump_lines (progs_t *pr)
|
|||
addr = lineno->line ? lineno->fa.addr
|
||||
: (unsigned int) func->first_statement;
|
||||
if (aux_func && func)
|
||||
printf (" %05x %s:%d %s+%d", addr, pr->pr_strings + func->s_file,
|
||||
printf (" %05x %s:%u %s+%u", addr, pr->pr_strings + func->s_file,
|
||||
line, pr->pr_strings + func->s_name,
|
||||
addr - func->first_statement);
|
||||
else if (aux_func)
|
||||
printf ("%d %d %d %d %d", aux_func->function, line,
|
||||
printf ("%u %u %u %u %u", aux_func->function, line,
|
||||
aux_func->line_info, aux_func->local_defs,
|
||||
aux_func->num_locals);
|
||||
else if (lineno->line)
|
||||
|
|
|
@ -103,7 +103,7 @@ dump_class (progs_t *pr, pr_class_t *class)
|
|||
} else {
|
||||
printf (" %s @ %d\n", class_name, POINTER_TO_PROG (pr, class));
|
||||
}
|
||||
printf (" %d %d %d %d\n", class->class_pointer, class->version,
|
||||
printf (" %d %d %u %d\n", class->class_pointer, class->version,
|
||||
class->info, class->instance_size);
|
||||
dump_methods (pr, &G_STRUCT (pr, pr_method_list_t, class->methods), 0);
|
||||
dump_methods (pr, &G_STRUCT (pr, pr_method_list_t, meta->methods), 1);
|
||||
|
|
Loading…
Reference in a new issue