summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2012-03-01 16:35:20 -0800
committerKaz Kylheku <kaz@kylheku.com>2012-03-01 16:35:20 -0800
commitd4830e29da794cdb5704109343dbe4d0f0d97105 (patch)
tree90d6af4bb39d6f19b6739859087d0225c9fa09ae /match.c
parentc4aa3b20979ba9a6de64ce3b02281437687ce6ba (diff)
downloadtxr-d4830e29da794cdb5704109343dbe4d0f0d97105.tar.gz
txr-d4830e29da794cdb5704109343dbe4d0f0d97105.tar.bz2
txr-d4830e29da794cdb5704109343dbe4d0f0d97105.zip
* match.c (sem_error, file_err): Bugfix: pull text formatted source
location using source_loc_str rather than raw object using source_loc.
Diffstat (limited to 'match.c')
-rw-r--r--match.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/match.c b/match.c
index fc9746a0..7b22b51d 100644
--- a/match.c
+++ b/match.c
@@ -84,7 +84,7 @@ static void sem_error(val form, val fmt, ...)
va_start (vl, fmt);
if (form)
- format(stream, lit("(~a) "), source_loc(form), nao);
+ format(stream, lit("(~a) "), source_loc_str(form), nao);
(void) vformat(stream, fmt, vl);
va_end (vl);
@@ -99,7 +99,7 @@ static void file_err(val form, val fmt, ...)
va_start (vl, fmt);
if (form)
- format(stream, lit("(~a) "), source_loc(form), nao);
+ format(stream, lit("(~a) "), source_loc_str(form), nao);
(void) vformat(stream, fmt, vl);
va_end (vl);