From 1cdcc438ccb42fa000b8da99f800f0dac6945e13 Mon Sep 17 00:00:00 2001 From: q66 Date: Fri, 23 Sep 2016 20:18:01 +0200 Subject: [PATCH] debug fix --- src/cs_gen.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cs_gen.cc b/src/cs_gen.cc index 3c5191c..b6ec317 100644 --- a/src/cs_gen.cc +++ b/src/cs_gen.cc @@ -12,7 +12,7 @@ static ostd::ConstCharRange cs_get_debug_fmt( GenState &gs, ostd::ConstCharRange fmt, ostd::CharRange buf ) { ostd::CharRange r = buf; - if (gs.src_name.empty()) { + if (!gs.src_name.empty()) { ostd::format(r, "%s:%d: %s", gs.src_name, gs.current_line, fmt); } else { ostd::format(r, "%d: %s", gs.current_line, fmt);