From 4c49583fed5e7917d2acbdc449f422e16f19eead Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 31 Mar 2015 13:55:57 +0100 Subject: [PATCH] small code tweak in format --- src/string.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/string.cc b/src/string.cc index 02e79f3f..df360ae0 100644 --- a/src/string.cc +++ b/src/string.cc @@ -229,7 +229,7 @@ String format(StringView fmt, ArrayView params) if (opening == end) break; - if (opening != it && res.back() == '\\') + if (opening != it && *(opening-1) == '\\') { res.back() = '{'; it = opening + 1;