diff options
| author | grischka <grischka> | 2016-05-25 18:51:36 +0200 |
|---|---|---|
| committer | grischka <grischka> | 2016-05-25 18:51:36 +0200 |
| commit | 9e0e05eb4ed18950b02f25efbf79ed27781fb568 (patch) | |
| tree | 6168b299a48b835c122adc5e0f5c0ae03a72e37b /libtcc.c | |
| parent | bab4519617f9796990eee325925adb98ab635997 (diff) | |
| download | tinycc-9e0e05eb4ed18950b02f25efbf79ed27781fb568.tar.gz tinycc-9e0e05eb4ed18950b02f25efbf79ed27781fb568.tar.bz2 | |
Redo "fix line number in macro redefined message"
Smaller change to fix more cases
This reverts commit 0f36f60faa05da7e250a4b4eebd4b534e8a2b537.
Diffstat (limited to 'libtcc.c')
| -rw-r--r-- | libtcc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -753,7 +753,7 @@ static void error1(TCCState *s1, int is_warning, const char *fmt, va_list ap) (*pf)->filename, (*pf)->line_num); if (f->line_num > 0) { strcat_printf(buf, sizeof(buf), "%s:%d: ", - f->filename, f->line_num); + f->filename, f->line_num - !!(tok_flags & TOK_FLAG_BOL)); } else { strcat_printf(buf, sizeof(buf), "%s: ", f->filename); |
