X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=asm.c;h=a5444fd589d92f71d0838a53bfb0493b17d3d66a;hb=d1090135a32de7b38b48c55d4e21f95da4c405bc;hp=a14493984a1203a2332f2038b7cb425953b7782a;hpb=5154191043a9b7227ef0eee1a2b40299fc188655;p=inform.git diff --git a/asm.c b/asm.c index a144939..a5444fd 100644 --- a/asm.c +++ b/asm.c @@ -1,7 +1,7 @@ /* ------------------------------------------------------------------------- */ /* "asm" : The Inform assembler */ /* */ -/* Copyright (c) Graham Nelson 1993 - 2016 */ +/* Copyright (c) Graham Nelson 1993 - 2018 */ /* */ /* This file is part of Inform. */ /* */ @@ -1423,9 +1423,8 @@ extern int32 assemble_routine_header(int no_locals, stackargs = TRUE; } - if (veneer_mode) routine_starts_line = -1; - else routine_starts_line = ErrorReport.line_number - + FILE_LINE_SCALE_FACTOR*ErrorReport.file_number; + if (veneer_mode) routine_starts_line = blank_brief_location; + else routine_starts_line = get_brief_location(&ErrorReport); if (asm_trace_level > 0) { printf("\n%5d +%05lx [ %s ", ErrorReport.line_number,