]> Shamusworld >> Repos - rmac/blobdiff - sect.c
Fixed missing error reporting on fixup stage.
[rmac] / sect.c
diff --git a/sect.c b/sect.c
index d50d9f3ffc997aebae45dbf8e7fae2148cdf5fb6..7edbfb6410c3c8b301d8d4dcab4ba2960987d66b 100644 (file)
--- a/sect.c
+++ b/sect.c
@@ -454,6 +454,10 @@ int ResolveFixups(int sno)
                        loc = *fup.lp++;
                        cfileno = *fup.wp++;
                        curlineno = (int)*fup.wp++;
+DEBUG { printf("ResolveFixups: cfileno=%u\n", cfileno); }
+                       // This is based on global vars cfileno, curfname :-P
+                       // This approach is kinda meh as well. I think we can do better than this.
+                       SetFilenameForErrorReporting();
 
                        esym = NULL;