girmodule: Ensure we actually use unsigned for gi_ir_module_fatal line

This commit is contained in:
Marco Trevisan (Treviño) 2024-01-16 01:47:01 +01:00
parent 13791b47f6
commit 91a3399027
3 changed files with 6 additions and 3 deletions

View File

@ -77,7 +77,10 @@ void gi_ir_module_add_include_module (GIIrModule *module,
GITypelib * gi_ir_module_build_typelib (GIIrModule *module);
void gi_ir_module_fatal (GIIrTypelibBuild *build, unsigned int line, const char *msg, ...) G_GNUC_PRINTF (3, 4) G_GNUC_NORETURN;
void gi_ir_module_fatal (GIIrTypelibBuild *build,
unsigned int line,
const char *msg,
...) G_GNUC_PRINTF (3, 4) G_GNUC_NORETURN;
void gi_ir_node_init_stats (void);
void gi_ir_node_dump_stats (void);

View File

@ -114,7 +114,7 @@ gi_ir_module_fatal (GIIrTypelibBuild *build,
context = g_string_new ("");
if (line > 0)
g_string_append_printf (context, "%d: ", line);
g_string_append_printf (context, "%u: ", line);
if (build->stack)
g_string_append (context, "In ");
for (link = g_list_last (build->stack); link; link = link->prev)

View File

@ -1104,7 +1104,7 @@ find_entry_node (GIIrTypelibBuild *build,
}
gi_ir_module_fatal (build, -1, "type reference '%s' not found", name);
gi_ir_module_fatal (build, 0, "type reference '%s' not found", name);
out:
g_strfreev (names);